fix(receive): render addCardDisclaimer for offers, not just gift cards#1076
Open
orveth wants to merge 1 commit into
Open
fix(receive): render addCardDisclaimer for offers, not just gift cards#1076orveth wants to merge 1 commit into
orveth wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
gudnuf
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
addCardDisclaimerwas previously only rendered inside thepurpose === 'gift-card'branch inreceive-cashu-token.tsx. Offers (purpose: 'offer') never displayed their disclaimer text.This PR lifts the disclaimer rendering above the purpose branch so it works the same way for both gift cards and offers. Both duplicate blocks in
receive-cashu-token.tsx(~lines 289 and 462) are updated.Test plan
purpose: 'gift-card'mint that hasaddCardDisclaimerset — verify text still renders below the cardpurpose: 'offer'mint that hasaddCardDisclaimerset — verify text now renders below the OfferItembun run fix:allcleanTriggered by
bob's
agicashlaunchoffer launch (#1075) — wants disclaimer "Valid at any Square merchant" to render for an offer.🤖 Generated with Claude Code