From 5b41fb0ff50991044744ca0cbe187a023ffaf262 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 27 Jan 2024 00:21:57 -0500 Subject: [PATCH] update text and patch notice --- .../ServerConfigContext.tsx | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/src/context/ServerConfigContext/ServerConfigContext.tsx b/frontend/src/context/ServerConfigContext/ServerConfigContext.tsx index a1d5f8ec2..291765e3b 100644 --- a/frontend/src/context/ServerConfigContext/ServerConfigContext.tsx +++ b/frontend/src/context/ServerConfigContext/ServerConfigContext.tsx @@ -33,15 +33,7 @@ export const ServerConfigProvider = ({ children }: Props): JSX.Element => { } }, [isLoading, data]); - if (isLoading || (!data?.initialized && router.pathname !== "/admin/signup")) { - return ( -
- -
- ); - } - - if (data?.isMigrationModeOn) { + if (!isLoading && data?.isMigrationModeOn) { return (
@@ -53,7 +45,8 @@ export const ServerConfigProvider = ({ children }: Props): JSX.Element => { Scheduled Maintenance

- Infisical is currently in a scheduled maintenance mode.
We appreciate your patience and invite you to check back in a few minutes.
Your applications will keep fetching secrets as usual, without any interruption.
With any questions, please No action is required on your end — your applications will continue to fetch secrets. +
If you have questions, please
{ ); } + if (isLoading || (!data?.initialized && router.pathname !== "/admin/signup")) { + return ( +
+ +
+ ); + } + return {children}; };