ManualPaymentModal crash that prevents staff from processing payment as a fallback.src/routes/webhooks/flexfund/flexfundWebhook.ts — the payment record is already in a state the handler cannot transition out of, leaving the order stuck.NOT_FOUND error. The order is left with no valid payment instrument attached.ManualPaymentModal.tsx crashes at line 51 with TypeError: Cannot read properties of undefined (reading 'toFixed') — a payment amount value is returning undefined. This eliminates the only available fallback.Locked
(None yet — pending repro and engineering investigation)
Open
Backend
src/routes/webhooks/flexfund/flexfundWebhook.ts — blocked state transition on PAC cancellation webhook; state machine does not handle transition out of current payment status.src/routes/webhooks/webhook.ts — webhook routing entry point; review how FlexFund cancellation events are dispatched.GET /subscriptions/:id call originates after PAC cancellation.Frontend
src/app/tools/inspections/[id]/components/ManualPaymentModal.tsx — crashes at line 51 (toFixed called on undefined); payment amount is not being guarded before render.src/app/tools/inspections/[id]/components/ServicesPayments.tsx — likely renders the payment section and passes amount props to ManualPaymentModal; investigate what value is passed when PAC has been cancelled.src/app/client/job/[slug]/pay-beta/PaymentBetaClient.tsx — client-facing payment UI; investigate whether PAC cancellation leaves this in a broken state with no payment method available.src/app/tools/inspections/[id]/components/EditChargesModal.tsx — surfaced in PAC-related search; review for related state handling.(unconfirmed — validate before assigning)
What to watch for during repro:
flexfundWebhook.tsPlease authenticate to join the conversation.
Triage
Main App
About 21 hours ago
Linear
Get notified by email when there are changes.
Triage
Main App
About 21 hours ago
Linear
Get notified by email when there are changes.