diff --git a/apps/web/process/payments/reactions/common.ts b/apps/web/process/payments/reactions/common.ts index a9de31d..6101588 100644 --- a/apps/web/process/payments/reactions/common.ts +++ b/apps/web/process/payments/reactions/common.ts @@ -290,6 +290,8 @@ export default function reactions({ store }: ProcessContext) { if (!changes?.length || changes.length > 1) return; const [changeIndex] = changes; + if (changeIndex < 1) return; + const value = nextPayments[changeIndex]; const payments = nextPayments.slice(1, -1).map((payment, i) => { if (i <= changeIndex - 2) return payment;