Skip to content

Commit 49754af

Browse files
committed
chore(tokens/sell): only apply ~ when less than 0.01
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 9f5177d commit 49754af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/flipcash/features/tokens/src/main/kotlin/com/flipcash/app/tokens/internal/TokenSellReceiptScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private fun SellReceipt(
144144
modifier = Modifier.fillMaxWidth(),
145145
label = stringResource(R.string.label_percentFee, feePercentage.roundToInt()),
146146
amount = feeAmount.formatted(
147-
extraPrefix = if (feeAmount.decimalValue != 1.0) "~" else null,
147+
extraPrefix = if (feeAmount.decimalValue < 0.01) "~" else null,
148148
),
149149
)
150150
}

0 commit comments

Comments
 (0)