Fixed text color of balance if showColoredAmounts is false

This commit is contained in:
dankito 2024-09-19 21:47:40 +02:00
parent df093d0cd3
commit ff8bf80f6d
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ fun NavigationMenuItem(
if (balance != null) {
Text(
formatUtil.formatAmount(balance, calculator.getTransactionsCurrency(emptyList())),
color = formatUtil.getColorForAmount(balance, showColoredAmounts),
color = if (showColoredAmounts) formatUtil.getColorForAmount(balance, showColoredAmounts) else textColor,
modifier = Modifier.padding(start = 4.dp)
)
}