Commit 39c5cb2
committed
fix(money): update transaction data when pay token changes on deposit
The deposit total stayed stale after changing the pay token because
handleDone (which syncs requiredAssets and atomic-batch calldata) only
fired on the first prefill. Reset the one-shot latch when the prefill
drops so the full update re-runs for the new token/amount.
Also shallow-spread txParams in syncMoneyAccountDepositRequiredAssets
to avoid mutating frozen controller state (read-only 'type' error).1 parent 955fd0a commit 39c5cb2
2 files changed
Lines changed: 9 additions & 5 deletions
File tree
- app/components/Views/confirmations
- components/info/custom-amount-info
- hooks/pay
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments