diff --git a/src/components/popup/Popup.tsx b/src/components/popup/Popup.tsx index 761e3f6..84dcc15 100644 --- a/src/components/popup/Popup.tsx +++ b/src/components/popup/Popup.tsx @@ -3,7 +3,7 @@ import {StyleSheet, View, Modal, Dimensions} from 'react-native'; import type {ImageStyle, ModalProps, ViewStyle, TextStyle} from 'react-native'; import {getAvailableApps, checkNotSupportedApps} from '../../utils'; import {generatePrefixes, generateTitles} from '../../constants'; -import type {SharedOptions, MapId} from '../../type'; +import type {MapId, SharedOptions} from '../../type'; import PopupFooter from './PopupFooter'; import PopupHeader from './PopupHeader'; import PopupBody from './PopupBody'; diff --git a/src/utils.ts b/src/utils.ts index abbf95b..4f8dab4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -9,7 +9,7 @@ export const getAvailableApps = async ( const availableApps: MapId[] = []; await Promise.all( - Object.entries(prefixes).map(async ([app, _]) => { + Object.keys(prefixes).map(async (app) => { try { const isInstalled = await isAppInstalled(app, prefixes); if (isInstalled) {