send money string format fix (#9099)

This commit is contained in:
Shaurya Rehan
2023-12-27 16:41:02 +05:30
committed by GitHub
parent 79a36fc1e2
commit 97845dcea5
2 changed files with 7 additions and 7 deletions

View File

@@ -21,6 +21,6 @@ class ResourceProviderImpl @Inject constructor(@ApplicationContext val context:
ResourceProvider {
override fun getString(@StringRes resId: Int, vararg formatArg: Any): String {
return context.getString(resId, formatArg)
return context.getString(resId, *formatArg)
}
}

View File

@@ -925,9 +925,9 @@ class SendMoneyViewModel @Inject constructor(
ctaText = if (paymentAmount.isBlank() || paymentAmount == ZERO_STRING) {
resourceProvider.getString(resId = R.string.np_pay)
} else {
String.format(
resourceProvider.getString(resId = R.string.pay_rupees_x),
_paymentAmount.value.getDisplayableAmount()
resourceProvider.getString(
resId = R.string.pay_rupees_x,
paymentAmount.getDisplayableAmount()
)
}
)
@@ -941,9 +941,9 @@ class SendMoneyViewModel @Inject constructor(
ctaText = if (paymentAmount.isBlank() || paymentAmount == ZERO_STRING) {
resourceProvider.getString(resId = R.string.np_pay)
} else {
String.format(
resourceProvider.getString(resId = R.string.pay_rupees_x),
_paymentAmount.value.getDisplayableAmount()
resourceProvider.getString(
resId = R.string.pay_rupees_x,
paymentAmount.getDisplayableAmount()
)
}
)