Merge branch 'fix/redirect-error' into 'development'

[HOTFIX/FE] Fixing redirect issues

See merge request mbugroup/lti-web-client!92
This commit is contained in:
kris
2025-12-10 11:11:50 +00:00
4 changed files with 11 additions and 2 deletions
+2
View File
@@ -8,4 +8,6 @@ const Closing = () => {
); );
}; };
export const dynamic = 'force-static';
export default Closing; export default Closing;
+2
View File
@@ -1,3 +1,5 @@
'use client';
import ExpensesTable from '@/components/pages/expense/ExpensesTable'; import ExpensesTable from '@/components/pages/expense/ExpensesTable';
const Expense = () => { const Expense = () => {
+5
View File
@@ -1,3 +1,5 @@
'use client';
import MarketingTable from '@/components/pages/marketing/MarketingTable'; import MarketingTable from '@/components/pages/marketing/MarketingTable';
const Marketing = () => { const Marketing = () => {
@@ -7,4 +9,7 @@ const Marketing = () => {
</div> </div>
); );
}; };
export const dynamic = 'force-static';
export default Marketing; export default Marketing;
+2 -2
View File
@@ -15,7 +15,7 @@ interface RequireAuthProps {
} }
const RequireAuth = ({ children }: RequireAuthProps) => { const RequireAuth = ({ children }: RequireAuthProps) => {
const { setUser, setIsLoadingUser } = useAuth(); const { user, setUser, setIsLoadingUser } = useAuth();
const { const {
data: userResponse, data: userResponse,
@@ -78,7 +78,7 @@ const RequireAuth = ({ children }: RequireAuthProps) => {
); );
} }
return <>{isResponseSuccess(userResponse) && children}</>; return <>{isResponseSuccess(userResponse) && user && children}</>;
}; };
export default RequireAuth; export default RequireAuth;