fix unauthorized bar

This commit is contained in:
an-lee
2024-09-06 19:51:21 +08:00
parent c215814359
commit b467c40d9a

View File

@@ -50,7 +50,7 @@ export default () => {
const AuthorizationStatusBar = () => {
const { user, logout } = useContext(AppSettingsProviderContext);
if (user.accessToken === null) {
if (!user.accessToken) {
return (
<div className="bg-red-500 text-white py-2 px-4 h-12 flex items-center sticky top-0">
<span className="text-sm">{t("authorizationExpired")}</span>