Skip to content

fix: email banner type warning#5435

Open
isXander wants to merge 1 commit intomodrinth:mainfrom
isXander:fix/email-banner-type-warning
Open

fix: email banner type warning#5435
isXander wants to merge 1 commit intomodrinth:mainfrom
isXander:fix/email-banner-type-warning

Conversation

@isXander
Copy link
Contributor

Fixes this warning:

@modrinth/frontend:dev:  WARN  [Vue warn]: Invalid prop: type check failed for prop "hasEmail". Expected Boolean, got String with value "xander@isxander.dev". at <VerifyEmailBanner>  

<VerifyEmailBanner
v-if="auth.user && !auth.user.email_verified && route.path !== '/auth/verify-email'"
:has-email="auth?.user?.email"
:has-email="auth?.user?.email != null"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could also be undefined i think. I'd pop a !! in front to coerce it into a boolean probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants