From 89621cc2cb21866a2973ea25b8a5284534f2798d Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Sun, 22 Oct 2023 22:43:45 +0500 Subject: [PATCH] fix: do not update isPendingOnfidoResult optimistically --- src/libs/actions/Wallet.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index caeb100851a9..390573cef385 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -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, @@ -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}); } /**