Hide other motivation fields when switching between states

This commit is contained in:
Nicolas Bouilleaud 2019-04-10 10:32:43 +02:00
parent ca5f31e374
commit 2fb1b19e09

View file

@ -2,6 +2,7 @@ import { show, hide } from '@utils';
export function showMotivation(event, state) {
event.preventDefault();
motivationCancel();
show(document.querySelector(`.motivation.${state}`));
hide(document.querySelector('.dropdown-items'));
}