Skip to content

fix(cash): prevent duplicate gift card intent submission on share#746

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/duplicate-gift-card-funding
May 20, 2026
Merged

fix(cash): prevent duplicate gift card intent submission on share#746
bmc08gt merged 1 commit into
code/cashfrom
fix/duplicate-gift-card-funding

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 20, 2026

Guard the onShared callback in shareGiftCard with an AtomicBoolean (giftCardFundingInProgress) so only the first of the two firings (shareResultReceiver + checkForShare) proceeds to fund the gift card.

Add isAccountAlreadyOpened to StaleState.isExpected as a Bugsnag safety net for the "account is already opened" server error.

Guard the onShared callback in shareGiftCard with an AtomicBoolean
(giftCardFundingInProgress) so only the first of the two firings
(shareResultReceiver + checkForShare) proceeds to fund the gift card.

Add isAccountAlreadyOpened to StaleState.isExpected as a Bugsnag
safety net for the "account is already opened" server error.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this May 20, 2026
@github-actions github-actions Bot added area: auth Login, session, access keys, identity area: network gRPC, connectivity, API, exchange rates type: fix Bug fix labels May 20, 2026
@bmc08gt bmc08gt merged commit 478719a into code/cash May 20, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/duplicate-gift-card-funding branch May 20, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: auth Login, session, access keys, identity area: network gRPC, connectivity, API, exchange rates type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant