Skip to content

fix(transaction-pay-controller): sync transaction metadata when fiat payment has no payment token#9158

Open
OGPoyraz wants to merge 1 commit into
mainfrom
fix/transaction-pay-fiat-sync
Open

fix(transaction-pay-controller): sync transaction metadata when fiat payment has no payment token#9158
OGPoyraz wants to merge 1 commit into
mainfrom
fix/transaction-pay-fiat-sync

Conversation

@OGPoyraz

Copy link
Copy Markdown
Member

Summary

When a fiat payment method is selected, paymentToken is not present. The previous guard in syncTransaction used || which required both to be present, blocking the fiat-only path entirely.

Changed the guard from && to || so that having either paymentToken or selectedFiatPayment is sufficient to proceed.

Changes

  • syncTransaction: guard changed from !paymentToken || !selectedFiatPayment!paymentToken && !selectedFiatPayment
  • Added test: syncs tx.metamaskPay when fiat payment is set but no paymentToken
  • Updated existing test description to reflect new semantics

@OGPoyraz OGPoyraz requested review from a team as code owners June 16, 2026 18:05
@OGPoyraz OGPoyraz temporarily deployed to default-branch June 16, 2026 18:05 — with GitHub Actions Inactive
@OGPoyraz OGPoyraz force-pushed the fix/transaction-pay-fiat-sync branch from 4072435 to 39099ee Compare June 16, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant