Skip to content

Commit

Permalink
Update Emails.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Jul 10, 2023
1 parent 1c94eed commit 236b862
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/settings/Emails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,12 @@ export default {
emails {
address
verified
}
user {
id
email {
address
}
primary
}
}
}`
})
.then(({ data }) => {
for (const email of data.my.emails) {
if (email.address === data.my.user.email?.address) {
email.primary = true
}
}
this.emails = data.my.emails
})
},
Expand Down

0 comments on commit 236b862

Please sign in to comment.