Skip to content

Commit

Permalink
Invalidate transactions store when transaction is captured
Browse files Browse the repository at this point in the history
  • Loading branch information
zmaglica committed Dec 20, 2024
1 parent 915fcc8 commit 0fcdceb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/data/authorizations/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ export function* submitCaptureAuthorization(
'getPaymentIntent'
);

// Need to invalidate transactions tab to update newly captured transaction if needed.
yield controls.dispatch(
STORE_NAME,
'invalidateResolutionForStoreSelector',
'getTransactions'
);

// Create success notice.
yield controls.dispatch(
'core/notices',
Expand Down

0 comments on commit 0fcdceb

Please sign in to comment.