Skip to content

Commit

Permalink
fix: do not update isPendingOnfidoResult optimistically
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Oct 22, 2023
1 parent 81fb1a2 commit 89621cc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/libs/actions/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,6 @@ function verifyIdentity(parameters) {
* @param {Number} parameters.chatReportID When accepting the terms of wallet to pay an IOU, indicates the parent chat ID of the IOU
*/
function acceptWalletTerms(parameters) {
const optimisticData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.USER_WALLET,
value: {
isPendingOnfidoResult: true,
},
},
];

const successData = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand All @@ -242,7 +232,7 @@ function acceptWalletTerms(parameters) {
},
];

API.write('AcceptWalletTerms', {hasAcceptedTerms: parameters.hasAcceptedTerms, reportID: parameters.chatReportID}, {optimisticData, successData, failureData});
API.write('AcceptWalletTerms', {hasAcceptedTerms: parameters.hasAcceptedTerms, reportID: parameters.chatReportID}, {successData, failureData});
}

/**
Expand Down

0 comments on commit 89621cc

Please sign in to comment.