Skip to content

Commit

Permalink
fix: parse correct boolean for verification
Browse files Browse the repository at this point in the history
  • Loading branch information
jkklapp committed Jun 7, 2022
1 parent df0ded5 commit b36e5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Dashboard/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<form>
<p>
<span
v-if="!user.verified"
v-if="!user.emailVerified"
class="text-red-700 dark:text-red-300 text-xs"
>
You need to verify your email address to access the fully-featured
Expand Down Expand Up @@ -81,7 +81,7 @@ export default {
return this.message.length > 100;
},
remainingMessagesForUser() {
return this.user.verified
return this.user.emailVerified
? this.remainingMessages
: parseInt(this.remainingMessages / 10, 10);
},
Expand Down

0 comments on commit b36e5a2

Please sign in to comment.