Skip to content

Commit

Permalink
added addition check to verify before removing derivez account
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv committed Nov 14, 2022
1 parent 851d7d6 commit 311ac41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cashier/src/stores/account-transfer-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default class AccountTransferStore {
}
}

if (!is_from_derivgo) {
if (!is_from_derivgo && transfer_between_accounts && Array.isArray(transfer_between_accounts.accounts)) {
transfer_between_accounts.accounts = transfer_between_accounts.accounts.filter(
account => account.account_type !== CFD_PLATFORMS.DERIVEZ
);
Expand Down

0 comments on commit 311ac41

Please sign in to comment.