Skip to content

Commit 61e424e

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Use attributionId to build localStorageKey
1 parent 89557c3 commit 61e424e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/components/UsageBasedBillingConfig.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function UsageBasedBillingConfig({ subject, attributionId }: Prop
4040
const [pendingStripeSubscription, setPendingStripeSubscription] = useState<PendingStripeSubscription | undefined>();
4141
const [billingError, setBillingError] = useState<string | undefined>();
4242

43-
const localStorageKey = `pendingStripeSubscriptionFor${subject?.id || ""}`;
43+
const localStorageKey = `pendingStripeSubscriptionFor${attributionId}`;
4444

4545
useEffect(() => {
4646
if (!subject) {

0 commit comments

Comments
 (0)