Skip to content

Commit 5c6a135

Browse files
committed
wip: remove usage of sync extension
1 parent 51080e3 commit 5c6a135

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Sources/Screens/Account/AccountSettings.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,16 @@ struct AccountSettings: View {
116116
}
117117
.navigationBarTitleDisplayMode(.inline)
118118
.navigationTitle("Settings")
119-
.voErrorAlert(isPresented: $showError, title: errorTitle, message: errorMessage)
119+
.voErrorAlert(
120+
isPresented: $showError,
121+
title: errorTitle,
122+
message: errorMessage
123+
)
124+
.voErrorAlert(
125+
isPresented: $accountStore.showError,
126+
title: accountStore.errorTitle,
127+
message: accountStore.errorMessage
128+
)
120129
.onAppear {
121130
accountStore.tokenStore = tokenStore
122131
if tokenStore.token != nil {
@@ -128,7 +137,6 @@ struct AccountSettings: View {
128137
onAppearOrChange()
129138
}
130139
}
131-
.sync($accountStore.showError, with: $showError)
132140
}
133141

134142
private func onAppearOrChange() {

0 commit comments

Comments
 (0)