Skip to content

Commit

Permalink
remvoed unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldavidw committed Jun 14, 2024
1 parent 26311f2 commit 67b0622
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Chronos/App/Onboarding/PasswordSetupView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion Chronos/Services/StateService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 67b0622

Please sign in to comment.