Skip to content

Commit 94dee18

Browse files
committed
fix(webapp): keep schedule purchase drafts in sync
1 parent 2488e4a commit 94dee18

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/webapp/app/components/schedules/PurchaseSchedulesModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ export function PurchaseSchedulesModal({
7373
setOpen(nextOpen);
7474
};
7575

76+
useEffect(() => {
77+
if (!open) return;
78+
// oxlint-disable-next-line react/react-compiler -- Keep the open draft aligned with authoritative billing values.
79+
setBundles(Math.round(extraSchedules / stepSize));
80+
}, [open, extraSchedules, stepSize]);
81+
7682
useEffect(() => {
7783
const data = fetcher.data;
7884
if (

0 commit comments

Comments
 (0)