Skip to content

Commit 110f8dd

Browse files
authored
fix(clerk-js): Use the same cache key for payment sources across checkout and profiles (#5706)
1 parent d42992c commit 110f8dd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dull-peaches-camp.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Bug fix: Use the same cache key for payment sources across checkout and profiles.

packages/clerk-js/src/ui/components/PaymentSources/PaymentSources.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const PaymentSources = (_: __experimental_PaymentSourcesProps) => {
9292
__experimental_commerce?.getPaymentSources,
9393
{ ...(subscriberType === 'org' ? { orgId: organization?.id } : {}) },
9494
undefined,
95-
'commerce-user-payment-sources',
95+
'commerce-payment-sources',
9696
);
9797
const { data: paymentSources } = data || { data: [] };
9898

0 commit comments

Comments
 (0)