Skip to content

Commit

Permalink
Merge pull request #1784 from numbersprotocol/fix-phone-verification-…
Browse files Browse the repository at this point in the history
…error-msg-for-duplicate-phone-numbers

fix(phone-verification): show proper msg for duplicate phones
  • Loading branch information
shc261392 authored Jul 5, 2022
2 parents 7604962 + c4c4523 commit 16224c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export class PhoneVerificationPage {
if (
errorType === 'validation_error' ||
errorType === 'throttled' ||
errorType === 'external_api_error'
errorType === 'external_api_error' ||
errorType === 'duplicate_phone_number'
) {
return this.errorService.toastError$(
this.translocoService.translate(`error.diaBackend.${errorType}`)
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"external_api_error": "An error occurred. Please try again later",
"phone_verification_failed": "Incorrect verification code",
"phone_verification_code_expired": "The verification code has been expired",
"duplicate_phone_number": "The phone number has already been used by another user",
"throttled": "Too frequent request",
"user_is_email_verified": "The email address has beed verified",
"user_not_found": "There is no account registered with the email address",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"external_api_error": "發生錯誤,請稍後再試",
"phone_verification_failed": "驗證碼錯誤",
"phone_verification_code_expired": "驗證碼已過期",
"duplicate_phone_number": "該電話號碼已被其他用戶使用",
"throttled": "短時間內傳送過多請求",
"user_is_email_verified": "此電子郵件已驗證",
"user_not_found": "此電子郵件尚未註冊 Capture 帳號",
Expand Down

0 comments on commit 16224c8

Please sign in to comment.