Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix sell scene amount reset #5809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jon-edge wants to merge 1 commit into develop from jon/fix/clear-sell-amount
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- fixed: `AirshipToast` font scaling
- fixed: Swap provider selection modal scrolling on Android
- fixed: `BuyCrypto` not auto-populating buy asset
- fixed: `RampCreateScene` sell crypto asset not resetting amounts when changing crypto asset

## 4.37.0 (2025年10月21日)

Expand Down
6 changes: 6 additions & 0 deletions src/components/scenes/RampCreateScene.tsx
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
return
}

// Clear amount when switching crypto assets in sell mode
if (direction === 'sell') {
setExchangeAmount({ empty: true })
setLastUsedInput(null)
}

await dispatch(
setRampCryptoSelection(account, {
walletId: result.walletId,
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /