From 081007055129571031bdeb289cad5b6a76e3faaf Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 10 Dec 2024 14:34:47 +0800 Subject: [PATCH] fix: about restore UI #606 --- FRW/Modules/MultiBackup/View/MultiBackupVerifyPinView.swift | 4 ++-- .../MultiRestore/ViewModel/RestoreMultiConnectViewModel.swift | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/FRW/Modules/MultiBackup/View/MultiBackupVerifyPinView.swift b/FRW/Modules/MultiBackup/View/MultiBackupVerifyPinView.swift index 6566c40d..f487c1b7 100644 --- a/FRW/Modules/MultiBackup/View/MultiBackupVerifyPinView.swift +++ b/FRW/Modules/MultiBackup/View/MultiBackupVerifyPinView.swift @@ -26,7 +26,7 @@ struct MultiBackupVerifyPinView: RouteableView { var callback: MultiBackupVerifyPinViewModel.VerifyCallback? var title: String { - " " + "" } var body: some View { @@ -76,7 +76,7 @@ struct MultiBackupVerifyPinView: RouteableView { } func backButtonAction() { - Router.dismiss() + Router.pop() callback?(false, "") } diff --git a/FRW/Modules/MultiRestore/ViewModel/RestoreMultiConnectViewModel.swift b/FRW/Modules/MultiRestore/ViewModel/RestoreMultiConnectViewModel.swift index d31dda9d..e6aadea0 100644 --- a/FRW/Modules/MultiRestore/ViewModel/RestoreMultiConnectViewModel.swift +++ b/FRW/Modules/MultiRestore/ViewModel/RestoreMultiConnectViewModel.swift @@ -94,6 +94,10 @@ extension RestoreMultiConnectViewModel { return } self.storeItem(list: verifyList) + } else { + DispatchQueue.main.async { + self.enable = true + } } }) } else {