Skip to content

Commit

Permalink
Revert "Revert invalid verification code string changes"
Browse files Browse the repository at this point in the history
This reverts commit 5ab5f0e.
  • Loading branch information
aj-rosado committed Feb 26, 2025
1 parent eb267f9 commit 46947fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ class TwoFactorLoginViewModel @Inject constructor(
it.copy(
dialogState = TwoFactorLoginState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = loginResult.errorMessage?.asText()
?: R.string.invalid_verification_code.asText(),
message = R.string.invalid_verification_code.asText(),
),
)
}
Expand All @@ -330,8 +329,7 @@ class TwoFactorLoginViewModel @Inject constructor(
it.copy(
dialogState = TwoFactorLoginState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = loginResult.errorMessage?.asText()
?: R.string.invalid_verification_code.asText(),
message = R.string.invalid_verification_code.asText(),
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class TwoFactorLoginViewModelTest : BaseViewModelTest() {
DEFAULT_STATE.copy(
dialogState = TwoFactorLoginState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = "Mock error message".asText(),
message = R.string.invalid_verification_code.asText(),
),
),
awaitItem(),
Expand Down Expand Up @@ -852,7 +852,7 @@ class TwoFactorLoginViewModelTest : BaseViewModelTest() {
DEFAULT_STATE.copy(
dialogState = TwoFactorLoginState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = "new device verification required".asText(),
message = R.string.invalid_verification_code.asText(),
),
),
awaitItem(),
Expand Down

0 comments on commit 46947fd

Please sign in to comment.