We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0973e3 commit 12bb16cCopy full SHA for 12bb16c
services/backend-api/client/src/pages/Checkout.tsx
@@ -129,6 +129,19 @@ export const Checkout = ({ cancelUrl }: Props) => {
129
? dayjs().add(1, checkoutData.item.interval).format("D MMM YYYY")
130
: todayFormatted;
131
132
+ const checkoutDataExists = !!checkoutData;
133
+ const checkoutRecurringTotalsExist = !!checkoutData?.recurringTotals;
134
+
135
+ useEffect(() => {
136
+ if (checkoutDataExists && !checkoutRecurringTotalsExist) {
137
+ captureException(new Error("Recurring totals do not exist"), {
138
+ extra: {
139
+ checkoutData,
140
+ },
141
+ });
142
+ }
143
+ }, [checkoutRecurringTotalsExist, checkoutDataExists]);
144
145
return (
146
<DashboardContentV2 error={error} loading={false}>
147
<BoxConstrained.Wrapper>
0 commit comments