diff --git a/app/javascript/new_design/state-button.js b/app/javascript/new_design/state-button.js index da47340fd..c30fa64a2 100644 --- a/app/javascript/new_design/state-button.js +++ b/app/javascript/new_design/state-button.js @@ -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')); }