Skip to content

Commit

Permalink
Run swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed Dec 5, 2024
1 parent 7d66771 commit d658a4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ios/Cove/WalletSettingsContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct WalletSettingsContainer: View {

func initOnAppear() {
do {
let model = try app.getWalletViewModel(id: self.id)
let model = try app.getWalletViewModel(id: id)
self.model = model
} catch {
self.error = "Failed to get wallet \(error.localizedDescription)"
Expand All @@ -32,14 +32,14 @@ struct WalletSettingsContainer: View {
if let model {
WalletSettingsSheet(model: model, isSheet: false)
} else {
Text(self.error ?? "Loading...")
Text(error ?? "Loading...")
.task {
guard let error = self.error else { return }
guard let error else { return }
Log.error(error)
try? await Task.sleep(for: .seconds(5))
self.app.resetRoute(to: .listWallets)
app.resetRoute(to: .listWallets)
}
.onAppear(perform: self.initOnAppear)
.onAppear(perform: initOnAppear)
}
}
}

0 comments on commit d658a4e

Please sign in to comment.