From 13688adb6eee07d11772f93842a02269ea537c7a Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 4 Apr 2022 00:18:49 +0200 Subject: [PATCH] Minor fix --- Model/Applications/PipedAPI.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Model/Applications/PipedAPI.swift b/Model/Applications/PipedAPI.swift index c5b92a63..e8f6f5e5 100644 --- a/Model/Applications/PipedAPI.swift +++ b/Model/Applications/PipedAPI.swift @@ -152,7 +152,11 @@ final class PipedAPI: Service, ObservableObject, VideosAPI { } var signedIn: Bool { - !account.anonymous && !(account.token?.isEmpty ?? true) + guard let account = account else { + return false + } + + return !account.anonymous && !(account.token?.isEmpty ?? true) } var subscriptions: Resource? {