diff --git a/src/apps/create-patron-user-info/CreatePatron.entry.tsx b/src/apps/create-patron-user-info/CreatePatron.entry.tsx index 571dff5b7d..76c4f8332d 100644 --- a/src/apps/create-patron-user-info/CreatePatron.entry.tsx +++ b/src/apps/create-patron-user-info/CreatePatron.entry.tsx @@ -52,17 +52,12 @@ export interface CreatePatronProps const CreatePatronEntry: FC = () => { const userToken = hasToken("user") ? getToken("user") : null; + // The application using this app should handle the case where the user is not logged in. + // Eg by returning 403 Forbidden or redirecting to the login page. if (!userToken) { - return ( - <> -

Please Log ind..

-

- When the flash message/info bar has been implemented, we will use it - here to tell the user to log in. -

- - ); + return null; } + return ; };