File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ui/components/src/main/kotlin/com/getcode/ui/components/text Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ internal fun AmountTextAnimated(
9898 val digitVisibility = remember {
9999 mutableStateListOf(* Array (maxDigits) { if (! isInitiallyZero) it < initialAmount.split(DECIMAL_SEPARATOR )[0 ].length else false })
100100 }
101- val digitDecimalVisibility = remember { mutableStateListOf(* Array (totalDecimals) { false }) }
102- val digitDecimalZeroVisibility = remember { mutableStateListOf(* Array (totalDecimals) { false }) }
103- var firstDigit by remember { mutableStateOf(if (! isInitiallyZero && initialAmount.isNotEmpty()) initialAmount.first().toString() else " " ) }
101+ val digitDecimalVisibility = remember(totalDecimals) { mutableStateListOf(* Array (totalDecimals) { false }) }
102+ val digitDecimalZeroVisibility = remember(totalDecimals) { mutableStateListOf(* Array (totalDecimals) { false }) }
103+ var firstDigit by remember(isInitiallyZero, initialAmount) { mutableStateOf(if (! isInitiallyZero && initialAmount.isNotEmpty()) initialAmount.first().toString() else " " ) }
104104
105105 // Font states
106106 var textSize by remember { mutableStateOf(textStyle.fontSize) }
You can’t perform that action at this time.
0 commit comments