We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac96b1 commit 9f8d1bbCopy full SHA for 9f8d1bb
src/Pages/GlobalConfigurations/BuildInfra/BuildInfra.tsx
@@ -30,15 +30,15 @@ export const BuildInfra: FunctionComponent<BuildInfraProps> = ({ isSuperAdmin })
30
return <ErrorScreenNotAuthorized />
31
}
32
33
- const content = BuildInfraRouter ? (
34
- <BuildInfraUtilityProvider>
35
- <BuildInfraRouter />
36
- </BuildInfraUtilityProvider>
37
- ) : (
38
- <ProfileForm />
39
- )
40
-
41
- return content
+ if (BuildInfraRouter) {
+ return (
+ <BuildInfraUtilityProvider>
+ <BuildInfraRouter />
+ </BuildInfraUtilityProvider>
+ )
+ }
+
+ return <ProfileForm />
42
43
44
export default BuildInfra
0 commit comments