mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-02 11:12:20 +00:00
Dismiss status editor on not signed in
This commit is contained in:
parent
9209258f4c
commit
5db6d2d991
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ public struct StatusEditorView: View {
|
||||||
.onAppear {
|
.onAppear {
|
||||||
viewModel.client = client
|
viewModel.client = client
|
||||||
viewModel.prepareStatusText()
|
viewModel.prepareStatusText()
|
||||||
|
if !client.isAuth {
|
||||||
|
dismiss()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, DS.Constants.layoutPadding)
|
.padding(.horizontal, DS.Constants.layoutPadding)
|
||||||
.navigationTitle(viewModel.mode.title)
|
.navigationTitle(viewModel.mode.title)
|
||||||
|
|
Loading…
Reference in a new issue