From 71ae85c04e80c984dbfd1ae2b10752b526d00d07 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Tue, 14 Jul 2026 13:02:34 -0400 Subject: [PATCH] fix(chat): add fallback currency symbol when the selected currency doesnt use one Signed-off-by: Brandon McAnsh --- .../kotlin/com/flipcash/app/messenger/internal/ChatViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/flipcash/features/messenger/src/main/kotlin/com/flipcash/app/messenger/internal/ChatViewModel.kt b/apps/flipcash/features/messenger/src/main/kotlin/com/flipcash/app/messenger/internal/ChatViewModel.kt index c7db5504e3..6cec4f2fcb 100644 --- a/apps/flipcash/features/messenger/src/main/kotlin/com/flipcash/app/messenger/internal/ChatViewModel.kt +++ b/apps/flipcash/features/messenger/src/main/kotlin/com/flipcash/app/messenger/internal/ChatViewModel.kt @@ -377,7 +377,7 @@ internal class ChatViewModel @Inject constructor( val currency = exchange.getCurrency(rate.currency.name) if (currency != null) { amountDelegate.onCurrencyChanged(currency) - dispatchEvent(Event.OnCurrencySymbolUpdated(currency.symbol)) + dispatchEvent(Event.OnCurrencySymbolUpdated(currency.symbol.ifEmpty { "$" })) } }.launchIn(viewModelScope)