Skip to content

Commit 807004b

Browse files
authored
Modify enxcheck to ensure it does not show when enxRegion absent (#988)
* modify enxcheck to ensure it does not show when enxRegion absent * formatting
1 parent 039a38c commit 807004b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Home/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ const Home: FunctionComponent = () => {
6868
enxRegion,
6969
} = useConfigurationContext()
7070

71-
const enxComponent = Platform.OS === "ios" && (
71+
const shouldEnxMigrationshow = Platform.OS === "ios" && enxRegion !== ""
72+
73+
const enxComponent = shouldEnxMigrationshow && (
7274
<EnxMigrationInfo enxRegion={enxRegion} />
7375
)
7476

0 commit comments

Comments
 (0)