Skip to content

Commit e103389

Browse files
authored
Merge pull request #155 from code-payments/chore/dont-show-currency-prefix-when-not-a-symbol
chore: dont render currency abbrevation as symbol in amount area
2 parents 88fadc0 + 03c5097 commit e103389

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/getcode/view/main/currency/CurrencySelectionSheet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fun CurrencySelectionSheet(
9797
composeScope.launch {
9898
keyboardController?.hide()
9999
delay(500)
100-
navigator.hideWithResult(it)
100+
navigator.popWithResult(it)
101101
}
102102
}.launchIn(this)
103103
}

app/src/main/java/com/getcode/view/main/giveKin/BaseAmountCurrencyViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ abstract class BaseAmountCurrencyViewModel(
205205
amountText = formatAmount(amountText, selectedCurrency),
206206
amountDouble = amount,
207207
amountKin = amountKin,
208-
amountPrefix = formatPrefix(selectedCurrency),
208+
amountPrefix = formatPrefix(selectedCurrency).takeIf { it != selectedCurrency.code }.orEmpty(),
209209
amountSuffix = formatSuffix(selectedCurrency),
210210
captionText = formatCaption(
211211
selectedCurrency,

0 commit comments

Comments
 (0)