Skip to content

Commit

Permalink
Modify enxcheck to ensure it does not show when enxRegion absent (#988)
Browse files Browse the repository at this point in the history
* modify enxcheck to ensure it does not show when enxRegion absent
* formatting
  • Loading branch information
mxMarkowitz committed Jun 21, 2022
1 parent 039a38c commit 807004b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ const Home: FunctionComponent = () => {
enxRegion,
} = useConfigurationContext()

const enxComponent = Platform.OS === "ios" && (
const shouldEnxMigrationshow = Platform.OS === "ios" && enxRegion !== ""

const enxComponent = shouldEnxMigrationshow && (
<EnxMigrationInfo enxRegion={enxRegion} />
)

Expand Down

0 comments on commit 807004b

Please sign in to comment.