use period instead of colon in case error is blank
This commit is contained in:
Родитель
eb09e3f651
Коммит
7df1a763b7
|
@ -103,7 +103,7 @@ if (settingsResendEmailLinks?.length) {
|
|||
if (!response.ok) {
|
||||
// TODO: localize error messages
|
||||
const toast = document.createElement('toast-alert')
|
||||
toast.textContent = `Re-sending verification email failed: ${response.statusText}`
|
||||
toast.textContent = `Re-sending verification email failed. ${response.statusText}`
|
||||
document.body.append(toast)
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ if (settingsResendEmailLinks?.length) {
|
|||
throw response.error
|
||||
}
|
||||
} catch (err) {
|
||||
throw new Error(`Re-sending verification email failed: ${err}`)
|
||||
throw new Error(`Re-sending verification email failed. ${err}`)
|
||||
}
|
||||
event.preventDefault()
|
||||
return false
|
||||
|
|
Загрузка…
Ссылка в новой задаче