diff --git a/screens/Scan/ScanScreenController.ts b/screens/Scan/ScanScreenController.ts index 3fa157ba41..591551829c 100644 --- a/screens/Scan/ScanScreenController.ts +++ b/screens/Scan/ScanScreenController.ts @@ -1,9 +1,9 @@ -import {useSelector} from '@xstate/react'; -import {useContext} from 'react'; -import {useTranslation} from 'react-i18next'; +import { useSelector } from '@xstate/react'; +import { useContext } from 'react'; +import { useTranslation } from 'react-i18next'; -import {selectShareableVcsMetadata} from '../../machines/vc'; -import {GlobalContext} from '../../shared/GlobalContext'; +import { selectShareableVcsMetadata } from '../../machines/vc'; +import { GlobalContext } from '../../shared/GlobalContext'; import { selectIsLocationDenied, selectIsLocationDisabled, @@ -25,39 +25,39 @@ import { } from '../../machines/bleShare/scan/scanMachine'; export function useScanScreen() { - const {t} = useTranslation('ScanScreen'); - const {appService} = useContext(GlobalContext); + const { t } = useTranslation('ScanScreen'); + const { appService } = useContext(GlobalContext); const scanService = appService.children.get('scan'); const vcService = appService.children.get('vc'); const shareableVcsMetadata = useSelector( vcService, - selectShareableVcsMetadata, + selectShareableVcsMetadata ); const isLocationDisabled = useSelector(scanService, selectIsLocationDisabled); const isLocationDenied = useSelector(scanService, selectIsLocationDenied); const isReadyForBluetoothStateCheck = useSelector( scanService, - selectReadyForBluetoothStateCheck, + selectReadyForBluetoothStateCheck ); const isStartPermissionCheck = useSelector( scanService, - selectIsStartPermissionCheck, + selectIsStartPermissionCheck ); const isNearByDevicesPermissionDenied = useSelector( scanService, - selectIsNearByDevicesPermissionDenied, + selectIsNearByDevicesPermissionDenied ); const isBluetoothPermissionDenied = useSelector( scanService, - selectIsBluetoothPermissionDenied, + selectIsBluetoothPermissionDenied ); const isBluetoothDenied = useSelector(scanService, selectIsBluetoothDenied); - const locationError = {message: '', button: ''}; + const locationError = { message: '', button: '' }; const isMinimumStorageRequiredForAuditEntryLimitReached = useSelector( scanService, - selectIsMinimumStorageRequiredForAuditEntryLimitReached, + selectIsMinimumStorageRequiredForAuditEntryLimitReached ); if (isLocationDisabled) { diff --git a/shared/javascript.ts b/shared/javascript.ts index 802084e798..bc1020fd4a 100644 --- a/shared/javascript.ts +++ b/shared/javascript.ts @@ -2,7 +2,7 @@ export function groupBy(array: T[], predicate: (T) => boolean) { const trueElements = []; const falseElements = []; - array?.forEach(e => { + array?.forEach((e) => { if (predicate(e)) { trueElements.push(e); } else {