gumroad
gumroad copied to clipboard
Fix: Allow nullable card.country in Purchase type
Summary
The card.country field can be null in the database (no NOT NULL constraint)
and the backend explicitly handles null values (purchase.rb:3704).
Updated TypeScript type from string to string | null to match the
actual data model and prevent runtime type validation errors.
Ai Discolsure
None. All code written by me
Livestream Viewing Confirmation
Have watched both the live streams end-to-end
As mentioned here : https://github.com/antiwork/gumroad/issues/1984#issuecomment-3594421927