diff --git a/frontend/src/components/vote/CodeInsertion.vue b/frontend/src/components/vote/CodeInsertion.vue index 97402625..14885762 100644 --- a/frontend/src/components/vote/CodeInsertion.vue +++ b/frontend/src/components/vote/CodeInsertion.vue @@ -45,7 +45,7 @@ function submitCode(code: string) { if (response.data.data) { useVotingStore().setOtpInUse(code); useVotingStore().setOtpInUseElectionId(route.params.id as string) - router.push(`/vote/${route.params.id}`); + window.location.href = `/vote/${route.params.id}`; } else { error.value = true; } @@ -104,7 +104,7 @@ onMounted(async () => {