Skip to content

Commit 9f8d1bb

Browse files
committed
feat: build infra code inverted
1 parent 4ac96b1 commit 9f8d1bb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Pages/GlobalConfigurations/BuildInfra/BuildInfra.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ export const BuildInfra: FunctionComponent<BuildInfraProps> = ({ isSuperAdmin })
3030
return <ErrorScreenNotAuthorized />
3131
}
3232

33-
const content = BuildInfraRouter ? (
34-
<BuildInfraUtilityProvider>
35-
<BuildInfraRouter />
36-
</BuildInfraUtilityProvider>
37-
) : (
38-
<ProfileForm />
39-
)
40-
41-
return content
33+
if (BuildInfraRouter) {
34+
return (
35+
<BuildInfraUtilityProvider>
36+
<BuildInfraRouter />
37+
</BuildInfraUtilityProvider>
38+
)
39+
}
40+
41+
return <ProfileForm />
4242
}
4343

4444
export default BuildInfra

0 commit comments

Comments
 (0)