fix undefined

This commit is contained in:
plebbitor
2023-04-08 09:54:35 +02:00
parent 73ed32c848
commit 2a0d590713
+1 -1
View File
@@ -264,7 +264,7 @@ const CaptchaModal = ({ isOpen, closeModal }) => {
const challenges = challengesArray.challenges;
const decryptedChallenges = [];
for (let i = 0; i < challenges.length; i++) {
for (let i = 0; i < challenges?.length; i++) {
const imageString = challenges[i].challenge;
const imageSource = `data:image/png;base64,${imageString}`;
decryptedChallenges.push(imageSource);