From c8a8eba3f202b0a37e568000bd30a1f17b1cfa23 Mon Sep 17 00:00:00 2001 From: ThomazFB Date: Thu, 12 Dec 2024 15:31:59 -0300 Subject: [PATCH] Fix lint issues --- .../wooshippinglabels/WooShippingLabelCreationViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/WooShippingLabelCreationViewModel.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/WooShippingLabelCreationViewModel.kt index 60342c0faed..36f4e05ccd5 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/WooShippingLabelCreationViewModel.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/WooShippingLabelCreationViewModel.kt @@ -24,9 +24,9 @@ import kotlinx.coroutines.flow.flatMapLatest import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.onStart +import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch import javax.inject.Inject -import kotlinx.coroutines.flow.update @HiltViewModel class WooShippingLabelCreationViewModel @Inject constructor( @@ -51,6 +51,7 @@ class WooShippingLabelCreationViewModel @Inject constructor( private val refreshShippingRates = MutableSharedFlow() private val selectedPackage = MutableStateFlow(NotSelected) + @OptIn(ExperimentalCoroutinesApi::class) private val shippingRates = combine(