Skip to content

fix: show swap orders from search dialog - #2707

Open
anishfyi wants to merge 1 commit into
RoboSats:mainfrom
anishfyi:fix-2449-swap-out-orders
Open

fix: show swap orders from search dialog#2707
anishfyi wants to merge 1 commit into
RoboSats:mainfrom
anishfyi:fix-2449-swap-out-orders

Conversation

@anishfyi

@anishfyi anishfyi commented Aug 31, 2026

Copy link
Copy Markdown

Replaces #2706, which GitHub closed automatically when its head fork was accidentally deleted. This branch restores the exact reviewed commit.

What does this PR do?

Fixes #2449

This PR resets the favorite currency to the Lightning swap pseudo-currency (1000) when either swap direction is selected in the search dialog. The subsequent order-book filter therefore receives swap mode and swap currency together instead of retaining the previous fiat currency and showing regular sell orders.

Validation

  • pre-commit run --files frontend/src/components/Dialogs/Search.tsx
  • npm run typecheck
  • npm run lint
  • npm run format:check

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

@anishfyi
anishfyi requested a review from a team as a code owner August 31, 2026 16:14
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.

Bug: clicking on "SWAP OUT OF LN" shows wrong orders

2 participants