Skip to content

Commit

Permalink
Merge pull request #34125 from tienifr/fix/33021
Browse files Browse the repository at this point in the history
fix: Red dot remains after error is cleared
  • Loading branch information
danieldoglas authored Jan 17, 2024
2 parents a8acf44 + 5b1f7a2 commit fe9c2e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/actions/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ function deleteContactMethod(contactMethod: string, loginList: Record<string, Lo
value: {
[contactMethod]: {
partnerUserID: '',
errorFields: {
deletedLogin: null,
},
errorFields: null,
pendingFields: {
deletedLogin: CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
},
Expand All @@ -225,6 +223,7 @@ function deleteContactMethod(contactMethod: string, loginList: Record<string, Lo
[contactMethod]: {
...oldLoginData,
errorFields: {
...oldLoginData?.errorFields,
deletedLogin: ErrorUtils.getMicroSecondOnyxError('contacts.genericFailureMessages.deleteContactMethod'),
},
pendingFields: {
Expand Down

0 comments on commit fe9c2e8

Please sign in to comment.