diff --git a/frontend/src/pages/HomePage/index.tsx b/frontend/src/pages/HomePage/index.tsx index f4bdc8a..fb1ccf9 100644 --- a/frontend/src/pages/HomePage/index.tsx +++ b/frontend/src/pages/HomePage/index.tsx @@ -46,10 +46,9 @@ export const HomePage: FC = () => { }, [account]) useEffect(() => { - if (!NumberUtils.isValidMascotChoiceId(selectedChoice)) { + if (NumberUtils.isValidMascotChoiceId(previousVote)) { setSelectedChoice(previousVote) } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [previousVote]) const actionBtnLabelContent = useMemo(() => {