diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 3b8d89de1c76..4407793fabf5 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -9,6 +9,7 @@ - [*] Fixed an issue with inconsistent data on the Customers screen [https://github.com/woocommerce/woocommerce-android/pull/14839] - [*] Fixed an issue when images for the card reader flows were not shown on tablets [https://github.com/woocommerce/woocommerce-android/pull/14849] - [*] Fixed an issue where the count of the filters applied to the orders was not updated correctly [https://github.com/woocommerce/woocommerce-android/pull/14844] +- [**] Fix the refund flow for Interac cards [https://github.com/woocommerce/woocommerce-android/pull/14874] - [**] POS: Allow merchants to view, search, and manage POS orders directly within the POS interface. [https://github.com/woocommerce/woocommerce-android/pull/14866] 23.5 diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/refunds/RefundSummaryViewModel.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/refunds/RefundSummaryViewModel.kt index 2b6499f4b5a7..19a88c3561f2 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/refunds/RefundSummaryViewModel.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/payments/refunds/RefundSummaryViewModel.kt @@ -39,6 +39,7 @@ import kotlinx.coroutines.Job import kotlinx.coroutines.async import kotlinx.coroutines.launch import kotlinx.coroutines.withContext +import kotlinx.coroutines.yield import kotlinx.parcelize.Parcelize import org.wordpress.android.fluxc.model.refunds.WCRefundModel import org.wordpress.android.fluxc.network.rest.wpcom.wc.WooResult @@ -126,6 +127,7 @@ class RefundSummaryViewModel @Inject constructor( if (wasConfirmed) { if (networkStatus.isConnected()) { refundJob = launch { + yield() // ensure the navigation component completes navigation before proceeding val order = order.await() refundSummaryState = refundSummaryState.copy( isFormEnabled = false