Remove lint problems and adding catch block to createPendingCreations.

This commit is contained in:
elweyn 2021-12-30 14:37:51 +01:00
parent c31c8b28f2
commit 75bc2a94c1
2 changed files with 3 additions and 7 deletions

View File

@ -244,11 +244,9 @@ export default {
}
this.$emit('remove-all-bookmark')
})
// $store - offene Schöpfungen hochzählen
// this.$store.commit('openCreationsPlus', i)
// lösche alle Mitglieder aus der MehrfachSchöpfungsListe nach dem alle Mehrfachschpfungen zum bestätigen gesendet wurden.
// this.$emit('remove-all-bookmark')
.catch((error) => {
this.$toasted.error(error.message)
})
} else if (this.type === 'singleCreation') {
this.submitObj = {
email: this.item.email,

View File

@ -335,7 +335,5 @@ function isCreationValid(creations: number[], amount: number, creationDate: Date
async function hasActivatedEmail(email: string): Promise<boolean> {
const repository = getCustomRepository(LoginUserRepository)
const user = await repository.findByEmail(email)
let emailActivate = false
if (user) emailActivate = user.emailChecked
return user ? user.emailChecked : false
}