diff --git a/src/Map/MapPicker/MapPicker.tsx b/src/Map/MapPicker/MapPicker.tsx index e5093ff..9201fb0 100644 --- a/src/Map/MapPicker/MapPicker.tsx +++ b/src/Map/MapPicker/MapPicker.tsx @@ -12,7 +12,6 @@ type Props = { }; export const MapPicker = ({ map, onChange, testId }: Props) => { - const IS_WEB = Platform.OS === 'web'; const [hasPermissions, setHasPermissions] = useState(false); const [tempMap, setTempMap] = useState(map); @@ -69,7 +68,7 @@ export const MapPicker = ({ map, onChange, testId }: Props) => { } } else { if (!hasPermissions) { - if (IS_WEB) { + if (Platform.OS === 'web') { window?.confirm('No permissions to media library'); } else { Alert.alert('No permission', 'No permissions to media library', [{ text: 'OK' }]); diff --git a/src/Position/PositionPicker.web.tsx b/src/Position/PositionPicker.web.tsx index 6505f28..91e4133 100644 --- a/src/Position/PositionPicker.web.tsx +++ b/src/Position/PositionPicker.web.tsx @@ -17,7 +17,6 @@ type Props = { }; export const PositionPicker = ({ height, map, onChange, position, testId, width }: Props) => { - const IS_WEB = Platform.OS === 'web'; const [containerSize, setContainerSize] = useState<{ height: number; width: number;