From 1230aee277aee5a2ddb3fa181c05000bfb3678ff Mon Sep 17 00:00:00 2001 From: mtgriego Date: Mon, 15 Apr 2024 10:19:44 -0700 Subject: [PATCH] make cost be based on quantity of add on or reward item (#2013) --- .../viewmodels/ExpandableHeaderViewHolderViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt b/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt index 37f8071d43..37af697077 100644 --- a/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt +++ b/app/src/main/java/com/kickstarter/viewmodels/ExpandableHeaderViewHolderViewModel.kt @@ -61,7 +61,7 @@ interface ExpandableHeaderViewHolderViewModel { .addToDisposable(disposables) projectAndReward - .map { this.ksCurrency.format(it.second.minimum(), it.first) } + .map { this.ksCurrency.format(it.second.minimum() * (it.second.quantity() ?: 1), it.first) } .subscribe { this.amountForSummary.onNext(it) } .addToDisposable(disposables) }