-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Context
This issue was identified during review of PR #2843 but deferred to avoid scope creep.
Problem
The PaymentHistoryRecord and PaymentDetails interfaces now correctly use Nullable<number> for fields like quantity, treeCount, and Nullable<UnitTypes> for unitType to match the backend API. However, several components pass these nullable values directly to formatting utilities like getFormattedNumber without null checks, which may cause runtime issues.
Affected Areas
AccountRecord.tsxand other components consuming payment data- Formatting utilities expecting non-nullable values
- Fields affected:
quantity,treeCount,unitType
Expected Resolution
Add defensive null checks or fallback conversions before passing nullable fields to formatting functions. This ensures type safety and prevents potential runtime errors when these fields are null or undefined.
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels