From 67b062235fb219839b27f19d367d90b4a4637b77 Mon Sep 17 00:00:00 2001 From: Joel-David Date: Fri, 14 Jun 2024 22:23:24 +0800 Subject: [PATCH] remvoed unused var --- Chronos/App/Onboarding/PasswordSetupView.swift | 2 -- Chronos/Services/StateService.swift | 1 - 2 files changed, 3 deletions(-) diff --git a/Chronos/App/Onboarding/PasswordSetupView.swift b/Chronos/App/Onboarding/PasswordSetupView.swift index 36f4b69..2272521 100644 --- a/Chronos/App/Onboarding/PasswordSetupView.swift +++ b/Chronos/App/Onboarding/PasswordSetupView.swift @@ -105,8 +105,6 @@ extension PasswordSetupView { let vault = Vault(vaultId: UUID(), createdAt: Date(), chronosCryptos: [], encryptedTokens: []) modelContext.insert(vault) - stateService.vault = vault - await cryptoService.wrapMasterKeyWithUserPassword(password: Array(password.utf8)) nextBtnPressed = true } diff --git a/Chronos/Services/StateService.swift b/Chronos/Services/StateService.swift index a6eacfb..a699624 100644 --- a/Chronos/Services/StateService.swift +++ b/Chronos/Services/StateService.swift @@ -15,7 +15,6 @@ public class StateService { private let defaults = UserDefaults.standard var masterKey: SecureBytes = .init(bytes: []) - var vault: Vault? func setVaultId(vaultId: UUID) { defaults.setValue(vaultId.uuidString, forKey: StateEnum.VAULT_ID.rawValue)