Skip to content

Commit b3497f3

Browse files
Romanclaude
andcommitted
fix(enter-amount): assign the secondary currency-button flag
`SwapAmountView.init` took `showSecondaryCurrencyButton` and dropped it on the floor, so the stored property kept its `false` default no matter what a caller passed. `DualSwapAmountView` hands it `!isCurrencySelectorHidden`, which meant the chevron beside the converted value was hidden in every dual-swap view and `onSecondaryCurrencyTap` could never fire. Lost in 971ce13, where `secondaryErrorMessage` was threaded through the same init and this line went with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent c6f8c57 commit b3497f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/DashUIKit/Components/EnterAmount/SwapAmountView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public struct SwapAmountView: View {
8686
self.onPaste = onPaste
8787
self.secondarySymbol = secondarySymbol
8888
self.showSecondaryDashLogo = showSecondaryDashLogo
89+
self.showSecondaryCurrencyButton = showSecondaryCurrencyButton
8990
self.secondaryErrorMessage = secondaryErrorMessage
9091
self.onSecondaryCurrencyTap = onSecondaryCurrencyTap
9192
self.swapAnimationKey = swapAnimationKey

0 commit comments

Comments
 (0)