Open gdmalet opened 11 months ago
Existing code in SummaryScreen.kt uses both numberOfCupcakes and orderUiState.quantity, which are the same thing, and no dollar total. The following patch would correct that:
SummaryScreen.kt
numberOfCupcakes
orderUiState.quantity
val orderSummary = stringResource( R.string.order_details, numberOfCupcakes, orderUiState.flavor, orderUiState.date, - orderUiState.quantity + orderUiState.price
Thus, instead of this as the output:
Quantity: 12 cupcakes Flavor: Red Velvet Pickup date: Wed Nov 29 Total: 12
that Total line would show $24, which I'm sure was the original intention.
Total
$24
Existing code in
SummaryScreen.kt
uses bothnumberOfCupcakes
andorderUiState.quantity
, which are the same thing, and no dollar total. The following patch would correct that:Thus, instead of this as the output:
that
Total
line would show$24
, which I'm sure was the original intention.