From 96722465d4f94d76b54f03408a6e62cb3e0b0071 Mon Sep 17 00:00:00 2001 From: AsHim Shrestha Date: Tue, 7 Oct 2025 12:56:39 +0545 Subject: [PATCH] fix: feature disabled screen appearing after logout/login --- view/app/login/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/view/app/login/page.tsx b/view/app/login/page.tsx index 073f557b9..d4d935d7f 100644 --- a/view/app/login/page.tsx +++ b/view/app/login/page.tsx @@ -8,6 +8,7 @@ import { toast } from 'sonner'; import { AuthResponse } from '@/redux/types/user'; import { useDispatch, useSelector } from 'react-redux'; import { setCredentials } from '@/redux/features/users/authSlice'; +import { FeatureFlagsApi } from '@/redux/services/feature-flags/featureFlagsApi'; import { RootState } from '@/redux/store'; export default function LoginPage() { @@ -43,6 +44,7 @@ export default function LoginPage() { expiresIn: response.expires_in }) ); + dispatch(FeatureFlagsApi.util.invalidateTags(['FeatureFlags'])); router.push('/dashboard'); } } catch (error) { @@ -63,6 +65,7 @@ export default function LoginPage() { expiresIn: response.expires_in }) ); + dispatch(FeatureFlagsApi.util.invalidateTags(['FeatureFlags'])); router.push('/dashboard'); } } catch (error) {