Description
When a payer sends more than the invoice total, PaymentProgress renders the filled bar beyond the container boundary because the width percentage is not capped. The bar width should be capped at 100% visually while still showing the overpaid amount in the label.
Acceptance Criteria
Context
- Target file:
src/components/PaymentProgress.tsx
Description
When a payer sends more than the invoice total,
PaymentProgressrenders the filled bar beyond the container boundary because the width percentage is not capped. The bar width should be capped at 100% visually while still showing the overpaid amount in the label.Acceptance Criteria
100%regardless of the paid/total ratioContext
src/components/PaymentProgress.tsx