diff --git a/app/src/main/java/com/kickstarter/ui/activities/compose/projectpage/ConfirmPledgeDetailsScreen.kt b/app/src/main/java/com/kickstarter/ui/activities/compose/projectpage/ConfirmPledgeDetailsScreen.kt index ae799f4e50..bacc2c3a69 100644 --- a/app/src/main/java/com/kickstarter/ui/activities/compose/projectpage/ConfirmPledgeDetailsScreen.kt +++ b/app/src/main/java/com/kickstarter/ui/activities/compose/projectpage/ConfirmPledgeDetailsScreen.kt @@ -685,11 +685,7 @@ fun ItemizedRewardListContainer( Row { Text( - text = stringResource( - id = - if (rewardsList.isNotEmpty()) R.string.Bonus_support - else R.string.Pledge_without_a_reward - ), + text = stringResource(id = R.string.Bonus_support), style = typography.subheadlineMedium, color = colors.textSecondary ) diff --git a/app/src/main/java/com/kickstarter/viewmodels/projectpage/ConfirmDetailsViewModel.kt b/app/src/main/java/com/kickstarter/viewmodels/projectpage/ConfirmDetailsViewModel.kt index 364d1c76c8..1820ed56c4 100644 --- a/app/src/main/java/com/kickstarter/viewmodels/projectpage/ConfirmDetailsViewModel.kt +++ b/app/src/main/java/com/kickstarter/viewmodels/projectpage/ConfirmDetailsViewModel.kt @@ -99,7 +99,6 @@ class ConfirmDetailsViewModel(val environment: Environment) : ViewModel() { if (::projectData.isInitialized) { pledgeReason = pledgeDataAndPledgeReason(projectData, reward).second } - addedBonusSupport = 0.0 updateShippingAmount() @@ -231,7 +230,7 @@ class ConfirmDetailsViewModel(val environment: Environment) : ViewModel() { } fun decrementBonusSupport() { - if ((addedBonusSupport + initialBonusSupport) - minStepAmount >= initialBonusSupport) { + if (addedBonusSupport - minStepAmount >= initialBonusSupport) { addedBonusSupport -= minStepAmount totalAmount = calculateTotal() viewModelScope.launch {