Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Co-authored-by: Srikar Parsi <[email protected]>
  • Loading branch information
aldo-expensify and srikarparsi authored Nov 10, 2022
1 parent 21f2aa5 commit 2e3024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/PaymentMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function getMakeDefaultPaymentOnyxData(bankAccountID, fundID, previousPaymentMet
},
];

// Don't clear the error if this is not the optimistic data, otherwise,
// Only clear the error if this is optimistic data. If this is failure data, we do not want to clear the error that came from the server.
// we end up clearing the error that came from the server in case of failure
if (isOptimisticData) {
onyxData[0].value.errors = null;
Expand Down

0 comments on commit 2e3024c

Please sign in to comment.