Skip to content

Commit e3f806d

Browse files
committed
feat: add edge cases
1 parent 6093bcc commit e3f806d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MenuBars/MenuBars.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ export const MenuBars = ({showPreviousColumn, showNextColumn, onPreviousColumn,
213213
if ((timerExpired || USED_VOTES) && USER_NOT_READY && (state.activeTimer || state.activeVoting)) {
214214
timer = setTimeout(handleTimeout, 2000);
215215
}
216-
if (!USER_NOT_READY || (!state.activeTimer && !state.activeVoting) || !USED_VOTES) {
216+
if (!USED_VOTES || !state.activeTimer || !USER_NOT_READY || !state.activeVoting) {
217217
setIsReadyTooltipClass("");
218218
}
219+
219220
return () => clearTimeout(timer);
220221
}, [timerExpired, USER_NOT_READY, state.timerEnd, USED_VOTES, state.activeTimer, state.activeVoting]);
221222

0 commit comments

Comments
 (0)