Dismiss status editor on not signed in

This commit is contained in:
Thomas Ricouard 2022-12-27 08:31:57 +01:00
parent 9209258f4c
commit 5db6d2d991
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ public struct StatusEditorView: View {
.onAppear {
viewModel.client = client
viewModel.prepareStatusText()
if !client.isAuth {
dismiss()
}
}
.padding(.horizontal, DS.Constants.layoutPadding)
.navigationTitle(viewModel.mode.title)