Skip to content

fix(wallet): prevent buy loading dialog from getting stuck - #6913

Open
SeniorZhai wants to merge 1 commit into
masterfrom
fix/buy-loading-dialog-stuck
Open

SeniorZhai wants to merge 1 commit into
masterfrom
fix/buy-loading-dialog-stuck

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

No description provided.

@gaotic

gaotic Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

AI review done for 98f3e1d in 4m 23s · 1 comment

Quality: Needs a fix before merge. The retry regression was reproduced in a Kotlin scratch test with stubbed Android state.

Role Model Status
Reviewer Codex codex/gpt-6.2-sol · effort high ok

@gaotic gaotic Bot 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.

AI review · Codex · 98f3e1d

git diff --check passed. Offline Gradle configuration could not resolve the Foojay plugin, so the Android build, lint, and unit tests could not run. Dialog behavior remains unverified on Android.

setLoading(false)
initData()
updateUI()
setLoading(false)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If the quote succeeds but the route profile has no currencies recognized by the app, initData() starts another checkData() request. This call then clears the retry's loading state, exposing the fiat picker while currency is still null. Tapping it crashes at currency!!. Let the retry own the loading state until it finishes.

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