Skip to content

Commit 93ebfa9

Browse files
committed
Fix contacts permission modal warnings
Clean up the existing contacts permission modal warnings so the feature work can build on a warning-free file.
1 parent 1f1a8b1 commit 93ebfa9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default [
175175
'src/components/modals/CategoryModal.tsx',
176176

177177
'src/components/modals/ContactListModal.tsx',
178-
'src/components/modals/ContactsPermissionModal.tsx',
178+
179179
'src/components/modals/CountryListModal.tsx',
180180
'src/components/modals/DateModal.tsx',
181181
'src/components/modals/FiatListModal.tsx',

src/components/modals/ContactsPermissionModal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ export function maybeShowContactsPermissionModal(): ThunkAction<
4747

4848
// Bail if we already have permission:
4949
const contactsPermissionOn =
50-
(await check(permissionNames.contacts).catch(_error => 'denied')) ===
51-
'granted'
50+
(await check(permissionNames.contacts).catch(
51+
(_error: unknown) => 'denied'
52+
)) === 'granted'
5253
if (contactsPermissionOn) return
5354

5455
// Show the modal:
@@ -65,7 +66,7 @@ export function maybeShowContactsPermissionModal(): ThunkAction<
6566
* Shows the modal if it hasn't been shown before, and attempts to set the
6667
* system contacts permission setting
6768
*/
68-
function ContactsPermissionModal(props: Props) {
69+
const ContactsPermissionModal: React.FC<Props> = props => {
6970
const { bridge } = props
7071
const theme = useTheme()
7172
const styles = getStyles(theme)

0 commit comments

Comments
 (0)