Improve error messages based on code review feedback
Co-authored-by: jepp9350 <17977216+jepp9350@users.noreply.github.com>
This commit is contained in:
co-authored by
jepp9350
parent
5dc35d0a1b
commit
1ed8a30826
@@ -31,7 +31,7 @@
|
||||
"error": {
|
||||
"title": "Fejl",
|
||||
"validation_error": "Der opstod en fejl under validering af adgangskoden.",
|
||||
"generic_error": "Der opstod en fejl"
|
||||
"save_email_error": "Der opstod en fejl under gemme af e-mailadressen."
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"error": {
|
||||
"title": "Error",
|
||||
"validation_error": "An error occurred while validating the password.",
|
||||
"generic_error": "An error occurred"
|
||||
"save_email_error": "An error occurred while saving the email address."
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -114,7 +114,7 @@ const onSaveEmail = async (password) => {
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: t('profile.error.title'),
|
||||
text: t('profile.error.generic_error'),
|
||||
text: t('profile.error.save_email_error'),
|
||||
icon: 'error',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user