Skip to content

Commit bfc1044

Browse files
authored
Merge pull request #5992 from blockchain/fix/order-confirmation-check-failing
fix: fixed confirm order check to return order instead of attribute
2 parents e7b5721 + 65c3cb1 commit bfc1044

File tree

1 file changed

+2
-2
lines changed
  • packages/blockchain-wallet-v4-frontend/src/data/components/buySell

1 file changed

+2
-2
lines changed

packages/blockchain-wallet-v4-frontend/src/data/components/buySell/sagas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas: any; ne
486486
// otherwise the order is probably in PENDING_DEPOSIT and so we should retry the fetch again
487487
const cardAttrs = ['needCvv', 'everypay', 'cardProvider', 'cardCassy']
488488
if (order.attributes) {
489-
const foundOrder = cardAttrs.find((attr) => order.attributes?.[attr])
490-
if (foundOrder) return foundOrder
489+
const foundAttribute = cardAttrs.find((attr) => order.attributes?.[attr])
490+
if (foundAttribute) return order
491491
}
492492
} catch (e) {
493493
if (isNabuError(e)) {

0 commit comments

Comments
 (0)