Skip to content

Commit b39154c

Browse files
committed
I'm an idiot at naming things, fix variable conflict
1 parent 771c993 commit b39154c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

vue/src/views/home/index.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</h1>
66
<h2>Join the Devanooga Community</h2>
77
</div>
8-
<div class="error" v-if="error">
9-
{{ error }}
8+
<div class="error" v-if="errorMessage">
9+
{{ errorMessage }}
1010
</div>
1111
<div class="content">
1212
<div class="information">
@@ -43,11 +43,11 @@ export default defineComponent({
4343
const { executeRecaptcha, recaptchaLoaded } =
4444
useReCaptcha() as IReCaptchaComposition;
4545
const email = ref("");
46-
const error = ref<string | null>(null);
46+
const errorMessage = ref<string | null>(null);
4747
const signupAccepted = ref(false);
4848
await recaptchaLoaded();
4949
async function signup() {
50-
error.value = null;
50+
errorMessage.value = null;
5151
signupAccepted.value = false;
5252
await axios
5353
.post("/api/v0/signup", {
@@ -60,15 +60,15 @@ async function signup() {
6060
.catch((error) => {
6161
switch (error.response.data.error) {
6262
case "already_in_team":
63-
error.value =
63+
errorMessage.value =
6464
"This e-mail address is already a member of the community, if you need an invite resent please contact us via our contact form.";
6565
break;
6666
case "token_verification_failed":
67-
error.value =
67+
errorMessage.value =
6868
"Slack sign-up failed -- Slack returned an unexpected error code, this may be a temporary issue, please try again in a minute, if the issue persists please reach out to us via our contact form!";
6969
break;
7070
default:
71-
error.value = `Unexpected error code from Slack: ${error.response.data.error}, please report this error via our contact form and we'll send you an invite manually!`;
71+
errorMessage.value = `Unexpected error code from Slack: ${error.response.data.error}, please report this error via our contact form and we'll send you an invite manually!`;
7272
}
7373
});
7474
}

0 commit comments

Comments
 (0)