fix: use correct initial state type

This commit is contained in:
Andy Shultz
2021-09-15 09:36:09 -04:00
parent 7bbb889258
commit 5640fb95c2

View File

@@ -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 () => {