Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Nov 20, 2024
1 parent 76cc087 commit da5bf6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/request/ContactImport/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {RESULTS} from 'react-native-permissions';
import type {PermissionStatus} from 'react-native-permissions';
import {requestContactPermission} from '@pages/iou/request/ContactPermission';
import CONST from '@src/CONST';
import type {ContactImportResult, DeviceContact} from './types';
import type {ContactImportResult} from './types';

function contactImport(): Promise<ContactImportResult> {
let permissionStatus: PermissionStatus = RESULTS.UNAVAILABLE;
Expand All @@ -19,7 +19,7 @@ function contactImport(): Promise<ContactImportResult> {
CONST.DEVICE_CONTACT.IMAGE_DATA,
]);
}
return [] as DeviceContact[];
return [];
})
.then((deviceContacts) => ({
contactList: Array.isArray(deviceContacts) ? deviceContacts : [],
Expand Down

0 comments on commit da5bf6f

Please sign in to comment.