Skip to content

Commit

Permalink
Fix translation api error in VerifyOwnershipPage.ts
Browse files Browse the repository at this point in the history
fix #8449
  • Loading branch information
charlag committed Jan 31, 2025
1 parent 01f4500 commit 0dae307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mail-app/settings/emaildomain/VerifyOwnershipPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class VerifyOwnershipPageAttrs implements WizardPageAttrs<AddDomainData>
return null
}

return () => lang.get("customDomainErrorDomainNotAvailable_msg")
return "customDomainErrorDomainNotAvailable_msg"
} else {
const errorMessageMap: Record<CustomDomainValidationResult, TranslationKey> = {
[CustomDomainValidationResult.CUSTOM_DOMAIN_VALIDATION_RESULT_OK]: "emptyString_msg",
Expand All @@ -108,7 +108,7 @@ export class VerifyOwnershipPageAttrs implements WizardPageAttrs<AddDomainData>
)
.then((message) => {
if (message) {
return showErrorDialog ? Dialog.message(downcast(message)).then(() => false) : false
return showErrorDialog ? Dialog.message(message).then(() => false) : false
}

return true
Expand Down

0 comments on commit 0dae307

Please sign in to comment.