Skip to content

Commit

Permalink
Merge pull request #5992 from blockchain/fix/order-confirmation-check…
Browse files Browse the repository at this point in the history
…-failing

fix: fixed confirm order check to return order instead of attribute
  • Loading branch information
dkremniov-bc authored Aug 28, 2023
2 parents e7b5721 + 65c3cb1 commit bfc1044
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas: any; ne
// otherwise the order is probably in PENDING_DEPOSIT and so we should retry the fetch again
const cardAttrs = ['needCvv', 'everypay', 'cardProvider', 'cardCassy']
if (order.attributes) {
const foundOrder = cardAttrs.find((attr) => order.attributes?.[attr])
if (foundOrder) return foundOrder
const foundAttribute = cardAttrs.find((attr) => order.attributes?.[attr])
if (foundAttribute) return order
}
} catch (e) {
if (isNabuError(e)) {
Expand Down

0 comments on commit bfc1044

Please sign in to comment.