fix: use correct initial state type
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user