Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/libs/actions/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function acceptWalletTerms(parameters: AcceptWalletTermsParams) {
value: {
isPendingOnfidoResult: null,
shouldShowFailedKYC: true,
hasFailedOnfido: true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate hasFailedOnfido update to KYC-specific failures

failureData is applied on every non-200 API response (see applyHTTPSOnyxUpdates in src/libs/actions/OnyxUpdates.ts, which runs request.failureData whenever response.jsonCode !== 200), so this unconditional hasFailedOnfido: true merge will also run for transient/non-KYC failures of ACCEPT_WALLET_TERMS (e.g., server errors). In those cases the wallet gets marked as failed and the UI redirects/hides activation based on hasFailedOnfido, which blocks normal retry behavior for users who did not actually fail Onfido.

Useful? React with 👍 / 👎.

},
},
{
Expand Down
Loading