ratelimits and styling
diff --git a/pages/rsmv/index.js b/pages/rsmv/index.js
index b05f581..6bb71ce 100644
--- a/pages/rsmv/index.js
+++ b/pages/rsmv/index.js
@@ -12,7 +12,8 @@
super(props);
this.v = false;
this.state = {
- captchaComplete: false
+ captchaComplete: false,
+ clicked: false
}
}
@@ -40,6 +41,12 @@
}
async submitForm(cls) {
+ if ( cls.state.clicked ) {
+ return
+ }
+ cls.setState({
+ clicked: true
+ })
if (!cls.v) {
return Router.push('/rsmv/failure','/rsmv')
}
diff --git a/styles/rsmv/rsmv.module.css b/styles/rsmv/rsmv.module.css
index 0650881..391ddc0 100644
--- a/styles/rsmv/rsmv.module.css
+++ b/styles/rsmv/rsmv.module.css
@@ -34,10 +34,10 @@
border: 3px solid #65CC76;
}
-.button:active {
- color: #F27878
+.button.clicked {
+ color: #F27878;
}
-.buttonComplete:active {
- color: #65CC76
+.buttonComplete.clicked {
+ color: #65CC76;
}