Display $0.00 for Claim Balance and Weekly Benefit Amount when API response returns 0.00
dianagriffin-zz opened this issue · comments
Description
Currently the Claim Balance and Weekly Benefit Amount fields are hidden when the API returns a 0.00
value. While we do want to hide these fields if they return a null value, we actually want to display $0.00
as the dollar amount if zero is returned as the value.
The reason is because $0.00 is meaningful information to the claimant, who needs to know if their claim has run out of money, and displaying $0.00 is also consistent with what's displayed to the claimant in UIO for these fields.
Acceptance Criteria
- When the API returns 0.00 for either the claimBalance or weeklyBenefitAmount fields, display $0.00
@dianagriffin Clarifying question: If the lastPaymentAmount
returned from the API gateway is 0.0
but the lastPaymentIssued
field exists (i.e. API gateway says "$0 paid on Aug 24"), what should we do?
- Hide the "Last Payment Issued" claim details field
- Display "$0.00 on 8/24/21"
- Display "8/24/21" (This would be new functionality. We are currently only displaying the Last Payment Issued field if both
lastPaymentAmount
andlastPaymentIssued
have non-null values)
Note: I know this ticket is explicitly about the "Claim Balance" and "Weekly Benefit Amount" fields, but asking about this one too.
@rocketnova Great question -- for consistency let's do option 2:
Display "$0.00 on 8/24/21"
@dianagriffin Great. Thank you!