Skip to content

Commit cd7a58b

Browse files
committed
fix crash when sign out
1 parent 8175395 commit cd7a58b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JellyfinPlayer/SettingsView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct SettingsView: View {
3131
HStack {
3232
Text("User")
3333
Spacer()
34-
Text(SessionManager.current.user.username ?? "")
34+
Text(SessionManager.current.user?.username ?? "")
3535
.foregroundColor(.jellyfinPurple)
3636
}
3737

@@ -41,7 +41,7 @@ struct SettingsView: View {
4141
HStack {
4242
Text("Server")
4343
Spacer()
44-
Text(ServerEnvironment.current.server.name ?? "")
44+
Text(ServerEnvironment.current.server?.name ?? "")
4545
.foregroundColor(.jellyfinPurple)
4646

4747
Image(systemName: "chevron.right")

0 commit comments

Comments
 (0)