From 017e4e36649838ed1b6a9028fff0c6e5a9320380 Mon Sep 17 00:00:00 2001 From: Scott Antonac Date: Wed, 24 Aug 2022 11:58:48 +1000 Subject: [PATCH] fix: example app use correct state value for checkout mode --- .../kotlin/com/example/afterpay/checkout/CheckoutViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/main/kotlin/com/example/afterpay/checkout/CheckoutViewModel.kt b/example/src/main/kotlin/com/example/afterpay/checkout/CheckoutViewModel.kt index fa67cf47..858fa360 100644 --- a/example/src/main/kotlin/com/example/afterpay/checkout/CheckoutViewModel.kt +++ b/example/src/main/kotlin/com/example/afterpay/checkout/CheckoutViewModel.kt @@ -137,7 +137,7 @@ class CheckoutViewModel( } fun loadCheckoutToken() { - val (email, total, isExpress) = state.value + val (email, total, _, isExpress) = state.value val symbols = DecimalFormatSymbols(Locale.US) val amount = DecimalFormat("0.00", symbols).format(total) val mode = if (isExpress) CheckoutMode.EXPRESS else CheckoutMode.STANDARD