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; }); /**