Skip to content

Commit c0e0ea9

Browse files
committed
quick fix
1 parent 55a2cd3 commit c0e0ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/pages/dashboard/ContentWrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ export default function ContentWrapper({ pageName, children }) {
9292
}, [pageName]);
9393

9494
if (loading) return <Loader />;
95+
if (!available) return <Restricted message={message} />;
96+
if (underMaintenance) return <Maintenance message={message} />;
9597
if (!allowed) {
9698
if (restrictionType === "staff") return <StaffRestricted />;
9799
if (restrictionType === "beta") return <BetaRestricted />;
98100
return <Restricted />;
99101
}
100-
if (!available) return <Restricted message={message} />;
101-
if (underMaintenance) return <Maintenance message={message} />;
102102

103103
if (!serviceNotAvailable) {
104104
return (

0 commit comments

Comments
 (0)