onClick button is not working like expecting

code: ```
10 Replies
M.A.L
M.A.LOP•7mo ago
No description
M.A.L
M.A.LOP•7mo ago
Buggy Bug World
Buggy Bug World•7mo ago
I can't see your function screenshot. I can see now, I had to zoom in. Before it won't zoom. 😂 In CreateCourse.jsx, is setChapterState a prop?
M.A.L
M.A.LOP•7mo ago
M.A.L
M.A.LOP•7mo ago
kings_avatar
kings_avatar•7mo ago
I think the main problem here is {userAuth.access_token===null?<Navigate to ="/Sign-in"/> // :loading?"Loading.." :courseState=="course"?<CreateCourse/> :""}
M.A.L
M.A.LOP•7mo ago
how ot fix it
kings_avatar
kings_avatar•7mo ago
check console.log if its redirecting to sign -in if thats what happens then ur issignedin checks in and reloads the page thats why even thought ur chapterform gets sets to true but a reload happens which put everything back in step 1
M.A.L
M.A.LOP•7mo ago
what can we so share screeing?
kings_avatar
kings_avatar•7mo ago
it will take a quite while it will be better if i have the code and check in with few tests
Want results from more Discord servers?
Add your server