Commit f7d7318
fix(send): dismiss payment completed screen when app is backgrounded
The SendBitcoinCompletedScreen had no awareness of app lifecycle events,
so it would persist indefinitely if the user paid in-store, left the app,
and returned later — showing a stale confirmation screen.
Added an AppState listener that tracks the active → background transition
and navigates home when the app is backgrounded. Follows the same pattern
as AppStateWrapper (useRef for previous state, explicit transition check).
Closes blinkbitcoin/blink-wip#554
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 69f0aa9 commit f7d7318
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
| |||
0 commit comments