Commit 30d3b103 by Arjun Jhukal

updated the minor changes

parent 4190568c
...@@ -13,7 +13,7 @@ export default function ComingSoonGate({ children }: { children: React.ReactNode ...@@ -13,7 +13,7 @@ export default function ComingSoonGate({ children }: { children: React.ReactNode
if (isLoading) return null; if (isLoading) return null;
// const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN"; // const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN";
const isUser = user?.role && user?.role.toUpperCase() === "USER"; const isUser = !user || user?.role?.toUpperCase() === "USER";
if (isUser && data?.data?.coming_soon === false) { if (isUser && data?.data?.coming_soon === false) {
return <ComingSoon />; return <ComingSoon />;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment