Skip to content

Commit

Permalink
Add check for server info before checking version
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Mar 10, 2021
1 parent 9584c9e commit 7a16800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/NativeShellWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const NativeShellWebView = observer(React.forwardRef(
const [ isRefreshing, setIsRefreshing ] = useState(false);

const server = rootStore.serverStore.servers[rootStore.settingStore.activeServer];
const isPluginSupported = compareVersions.compare(server.info?.Version, '10.7', '>=');
const isPluginSupported = !!server.info?.Version && compareVersions.compare(server.info?.Version, '10.7', '>=');

const injectedJavaScript = `
window.ExpoAppInfo = {
Expand Down

0 comments on commit 7a16800

Please sign in to comment.