Skip to content

Commit f57aa4f

Browse files
committed
fix: update billing to use new hook
1 parent 4c1269e commit f57aa4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/app/(main)/billing/hooks/use-billing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type Usage = {
2323
export type { Customer, CustomerInvoice as Invoice } from 'autumn-js';
2424

2525
export function useBilling(refetch?: () => void) {
26-
const { attach, cancel, check, track, openBillingPortal } = useAutumn();
26+
const { attach, cancel, check, track, openBillingPortal } = useCustomer();
2727
const [isLoading, setIsLoading] = useState(false);
2828
const [showNoPaymentDialog, setShowNoPaymentDialog] = useState(false);
2929
const [showCancelDialog, setShowCancelDialog] = useState(false);

0 commit comments

Comments
 (0)