NTP-7179 | Narayan | Fix rewards amount for single coin case (#13773)

This commit is contained in:
Aditya Narayan Malik
2024-11-25 20:04:53 +05:30
committed by GitHub
parent 452331f04b
commit b5c3b35808
2 changed files with 8 additions and 1 deletions

View File

@@ -822,7 +822,13 @@ private fun RewardsWonGratificationSection(
NaviText(
text =
stringResource(
id = R.string.np_rewards_won_suffix,
id =
if (
(rewardsGratificationUIState.amount.toDoubleOrNull() ?: 0.0) ==
1.00
)
R.string.np_rewards_won_suffix_singular
else R.string.np_rewards_won_suffix,
rewardsGratificationUIState.amount
),
fontFamily = ttComposeFontFamily,

View File

@@ -797,6 +797,7 @@
<string name="np_add_account_rewards_message">You\'re just 1 payment away from \nwinning upto&#160;</string>
<string name="np_rewards_won_prefix">You\'ve won&#160;</string>
<string name="np_rewards_won_suffix">%s Navi coins</string>
<string name="np_rewards_won_suffix_singular">%s Navi coin</string>
<string name="np_block_and_spam_cta_text">Don\'t know this user?</string>
<string name="np_block_and_spam_cta_text_v2">Don\'t know user?</string>
<string name="np_bank_account_not_linked_title">Account not linked</string>