i think i made changes
diff --git a/pages/nucleus/verify/index.js b/pages/nucleus/verify/index.js
index 796298a..44da4b4 100644
--- a/pages/nucleus/verify/index.js
+++ b/pages/nucleus/verify/index.js
@@ -14,10 +14,6 @@
const [clicked, setClicked] = React.useState(false);
const [theme, setTheme] = useColorMode()
- if (clicked) {
- Router.push('/nucleus/verify/alreadyVerified', '/nucleus/verify/success');
- }
-
const { reward: reward, isAnimating: isAnimating } = useReward('confetti', 'confetti', {
elementSize: 10,
elementCount: 150,
@@ -31,7 +27,7 @@
async function submitForm(tkn) {
if ( clicked ) {
- return
+ Router.push('/nucleus/verify/alreadyVerified', '/nucleus/verify/success');
}
setClicked(true);
reward();