Skip to content

fix: duplicated fast mode option - #1460

Merged
spoletijuan merged 2 commits into
feature/4.1.2from
fix/fm-duplicated
Aug 19, 2026
Merged

fix: duplicated fast mode option#1460
spoletijuan merged 2 commits into
feature/4.1.2from
fix/fm-duplicated

Conversation

@lserra-iov

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the PegIn “Fast Mode” option rendering to avoid duplicated Flyover option cards by consolidating several template conditions into a single computed display state.

Changes:

  • Replaced multiple overlapping v-if blocks with a single fastModeState-driven rendering path.
  • Added explicit UI states for Flyover unavailability (disabled, no liquidity, no quotes, insufficient funds).
  • Introduced a FlyoverDisplayState union type to make the UI-state logic explicit.

Critical Issues

  • fastModeState relies on enoughAmountFlyover, which currently evaluates only the first quote; if multiple quotes exist, this can incorrectly hide Fast Mode quotes (or show an “insufficient funds” message) even when another quote would be affordable.

Suggestions

  • Reformat the FlyoverDisplayState union type to a multi-line union for readability/consistency.
  • Consider renaming recaptchanNewTokenTimerecaptchaNewTokenTime (typo) as a follow-up (requires broader rename).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/pegin/components/create/PegInForm.vue
Comment thread src/pegin/components/create/PegInForm.vue Outdated
Comment thread src/pegin/components/create/PegInForm.vue Outdated
@spoletijuan
spoletijuan deployed to staging-mainnet August 19, 2026 20:15 — with GitHub Actions Active
@spoletijuan
spoletijuan deployed to staging-testnet August 19, 2026 20:16 — with GitHub Actions Active
@spoletijuan
spoletijuan merged commit c30f38e into feature/4.1.2 Aug 19, 2026
7 checks passed
@spoletijuan
spoletijuan deleted the fix/fm-duplicated branch August 19, 2026 21:00
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.

4 participants