Repository navigation
Commit bffe77d
committed
chore(tokens): drop the unreachable sell branch from the swap success title (#1301)
Tearing out the v1 UI removed the Sell button from the token screen, which
was the only place a SwapPurpose.Sell could be constructed. The v2 action
row offers Give, Convert, and Withdraw, so nothing can reach the success
title as a sell any more.
The title's `else` arm existed to name the reserve for that case. Make the
two reachable purposes explicit and let the fallback go unnamed rather than
claim a destination it can no longer have; the suffix was already optional.
title_cashReserves had no other reference, so it goes with it.
SwapPurpose.Sell itself stays: it is unreachable but still referenced by
SwapViewModel, AppRoute, and the sell receipt screen, so removing the type
is a larger change than this one. canSell stays too — Convert reads it.1 parent a0dfafb commit bffe77d
2 files changed
Lines changed: 3 additions & 2 deletions
File tree
- apps/flipcash
- core/src/main/res/values
- features/tokens/src/main/kotlin/com/flipcash/app/tokens/internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
536 | 535 | | |
537 | 536 | | |
538 | 537 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments