From 5640fb95c2b7df07b7e2cf2b6455e4a66acdaa18 Mon Sep 17 00:00:00 2001 From: Andy Shultz Date: Wed, 15 Sep 2021 09:36:09 -0400 Subject: [PATCH] fix: use correct initial state type --- src/id-verification/IdVerificationContextProvider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/id-verification/IdVerificationContextProvider.jsx b/src/id-verification/IdVerificationContextProvider.jsx index 538152d..b8f4cd8 100644 --- a/src/id-verification/IdVerificationContextProvider.jsx +++ b/src/id-verification/IdVerificationContextProvider.jsx @@ -30,7 +30,7 @@ export default function IdVerificationContextProvider({ children }) { hasGetUserMediaSupport ? MEDIA_ACCESS.PENDING : MEDIA_ACCESS.UNSUPPORTED, ); - const [verifiedNameEnabled, setVerifiedNameEnabled] = useState(''); + const [verifiedNameEnabled, setVerifiedNameEnabled] = useState(false); useEffect(() => { // Make the API call to retrieve VerifiedNameEnabled (async () => {