From 83d07f3cadf9c7ff0dc2cdcf62b701505d61f94e Mon Sep 17 00:00:00 2001 From: nsemets Date: Thu, 3 Sep 2026 19:08:53 +0300 Subject: [PATCH] fix(tos-consent-banner): fixed condition --- .../tos-consent-banner/tos-consent-banner.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/components/osf-banners/tos-consent-banner/tos-consent-banner.component.ts b/src/app/core/components/osf-banners/tos-consent-banner/tos-consent-banner.component.ts index 4b09dcfcb..7d6024103 100644 --- a/src/app/core/components/osf-banners/tos-consent-banner/tos-consent-banner.component.ts +++ b/src/app/core/components/osf-banners/tos-consent-banner/tos-consent-banner.component.ts @@ -58,7 +58,7 @@ export class TosConsentBannerComponent { * if user is authenticated we check whether is accepted terms of service to hide banner or show if not * otherwise user is not authenticated we hide banner always */ - return user ? user.acceptedTermsOfService : true; + return user?.id ? user.acceptedTermsOfService : true; }); /**