From f980e0dd4f6b685a8fe0c09cb248b7276ce90473 Mon Sep 17 00:00:00 2001 From: Annmarie Ziegler Date: Wed, 17 Apr 2024 11:51:39 -0400 Subject: [PATCH] Fix IllegalStateException by using postValue() in clearMenuStep() --- .../android/ui/mysite/cards/quickstart/QuickStartRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/quickstart/QuickStartRepository.kt b/WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/quickstart/QuickStartRepository.kt index d080314be536..1c2aa71aa1d0 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/quickstart/QuickStartRepository.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/quickstart/QuickStartRepository.kt @@ -302,7 +302,7 @@ class QuickStartRepository fun clearMenuStep() { if (_quickStartMenuStep.value != null) { - _quickStartMenuStep.value = null + _quickStartMenuStep.postValue(null) } }