From c7266cfa10727f9240936b554bd50ea29820069c 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 51310c88..f08475ed 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? {