Skip to content

Commit

Permalink
fix: pushModal not dispatched in GoCardless linking
Browse files Browse the repository at this point in the history
  • Loading branch information
EtaoinWu authored Sep 27, 2024
1 parent 686ce5b commit 20b55f4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/desktop-client/src/gocardless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ export async function authorizeBank(
) {
_authorize(dispatch, upgradingAccountId, {
onSuccess: async data => {
pushModal('select-linked-accounts', {
accounts: data.accounts,
requisitionId: data.id,
upgradingAccountId,
syncSource: 'goCardless',
});
dispatch(
pushModal('select-linked-accounts', {
accounts: data.accounts,
requisitionId: data.id,
upgradingAccountId,
syncSource: 'goCardless',
}),
);
},
});
}

0 comments on commit 20b55f4

Please sign in to comment.