From 986b3a6f694b64fa36ffd3987a2daafa1ec5387d 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 51c23524..eb741abe 100644 --- a/Model/Applications/PipedAPI.swift +++ b/Model/Applications/PipedAPI.swift @@ -161,7 +161,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? {