gumroad icon indicating copy to clipboard operation
gumroad copied to clipboard

Fix: Allow nullable card.country in Purchase type

Open Devwill2 opened this issue 1 month ago • 0 comments

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

Devwill2 avatar Dec 01 '25 07:12 Devwill2