Skip to content

Commit

Permalink
Merge pull request #10783 from Expensify/cmartins-fixValidateMessage
Browse files Browse the repository at this point in the history
Add resendLink message to successData
  • Loading branch information
luacmartins authored Sep 2, 2022
2 parents 73ec986 + 5af4187 commit efa65a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/libs/actions/Session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,29 +292,33 @@ function resetPassword() {
{
optimisticData: [
{
onyxMethod: 'merge',
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: ONYXKEYS.ACCOUNT,
value: {
isLoading: true,
forgotPassword: true,
message: null,
errors: null,
},
},
],
successData: [
{
onyxMethod: 'merge',
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: ONYXKEYS.ACCOUNT,
value: {
isLoading: false,
message: Localize.translateLocal('resendValidationForm.linkHasBeenResent'),
},
},
],
failureData: [
{
onyxMethod: 'merge',
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: ONYXKEYS.ACCOUNT,
value: {
isLoading: false,
message: null,
},
},
],
Expand Down

0 comments on commit efa65a0

Please sign in to comment.