Closed GradleD closed 3 weeks ago
@GradleD is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
The changes in quizStep.tsx
involve modifications to the handleCorrectAnswer
function, specifically adjusting the index of the correct answer by subtracting 1 before storing it in the correct_answers
array. The function's dependency array has also been updated to include index
and setSteps
. Other functions in the component remain unchanged, and the UI elements continue to function as before. The primary focus is on ensuring accurate representation of the correct answer when interacting with the API.
File | Change Summary |
---|---|
components/admin/taskSteps/quizStep.tsx | Modified handleCorrectAnswer to adjust the index of the correct answer by subtracting 1 and updated the dependency array to include index and setSteps . Other functions remain unchanged. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
starknet-quest | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 25, 2024 9:30am |
Pull Request type
The selected optionIndex is now adjusted by subtracting 1 before storing it in correct_answers. This ensures that the API receives 0 to 3 as expected.
Resolves: #NA
Other information
Summary by CodeRabbit
Bug Fixes
New Features