From ad1bc7f02bc28156ad3d0b341ade621555a0075b Mon Sep 17 00:00:00 2001 From: 0xturboblitz Date: Mon, 19 Feb 2024 09:40:49 -0700 Subject: [PATCH] fix smol type errors --- app/App.tsx | 4 ++-- app/src/screens/MainScreen.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/App.tsx b/app/App.tsx index 2623c2571..1718838be 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -104,11 +104,11 @@ function App(): JSX.Element { }; - const handleDisclosureChange = (field: keyof typeof disclosure) => { + const handleDisclosureChange = (field: string) => { setDisclosure( { ...disclosure, - [field]: !disclosure[field] + [field]: !disclosure[field as keyof typeof disclosure] }); }; diff --git a/app/src/screens/MainScreen.tsx b/app/src/screens/MainScreen.tsx index db5f4edb9..c0a96a23e 100644 --- a/app/src/screens/MainScreen.tsx +++ b/app/src/screens/MainScreen.tsx @@ -332,7 +332,7 @@ const MainScreen: React.FC = ({ Help -

How to scan your passport ?

+

How to scan your passport ?

1. Find the location of the NFC chip of your passport. If you are struggling this post will help you to find it.