From 6f236db962eb677ac137dba6529d837088aaf458 Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 26 Jul 2022 18:32:44 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../com/tangem/tap/features/home/compose/Stories.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/tangem/tap/features/home/compose/Stories.kt b/app/src/main/java/com/tangem/tap/features/home/compose/Stories.kt index 11c6bfbeb4..3ea4e1c26b 100644 --- a/app/src/main/java/com/tangem/tap/features/home/compose/Stories.kt +++ b/app/src/main/java/com/tangem/tap/features/home/compose/Stories.kt @@ -54,9 +54,7 @@ fun StoriesScreen( } val isPressed = remember { mutableStateOf(false) } - val needsToBePaused = - remember(homeState) { mutableStateOf(homeState) } - val isPaused = isPressed.value || needsToBePaused.value.value.btnScanState.progressState == ProgressState.Loading + val isPaused = isPressed.value || homeState.value.btnScanState.progressState == ProgressState.Loading val hideContent = remember { mutableStateOf(true) } @@ -139,11 +137,11 @@ fun StoriesScreen( colorFilter = if (isDarkBackground) null else ColorFilter.tint(Color.Black) ) when (currentStep.value) { - 1 -> FirstStoriesContent(needsToBePaused.value.value.btnScanState.progressState == ProgressState.Loading, currentStep.duration()) { hideContent.value = it } + 1 -> FirstStoriesContent(isPaused, currentStep.duration()) { hideContent.value = it } 2 -> StoriesRevolutionaryWallet(currentStep.duration()) - 3 -> StoriesUltraSecureBackup(needsToBePaused.value.value.btnScanState.progressState == ProgressState.Loading, currentStep.duration()) - 4 -> StoriesCurrencies(needsToBePaused.value.value.btnScanState.progressState == ProgressState.Loading, currentStep.duration()) - 5 -> StoriesWeb3(needsToBePaused.value.value.btnScanState.progressState == ProgressState.Loading, currentStep.duration()) + 3 -> StoriesUltraSecureBackup(isPaused, currentStep.duration()) + 4 -> StoriesCurrencies(isPaused, currentStep.duration()) + 5 -> StoriesWeb3(isPaused, currentStep.duration()) 6 -> StoriesWalletForEveryone(currentStep.duration()) } }