Skip to content

Commit

Permalink
update verify api call
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed May 31, 2024
1 parent 01c11a6 commit 065e700
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/routes/(app)/register/views/View1.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@
let studentArr = [];
studentArr.push($studentId1);
await sendVerification(studentArr, token);
loading = false;
pageView.set(3);
let verifResponse = await sendVerification(studentArr, token);
if(verifResponse.status === 200){
loading = false;
pageView.set(3);
}else{
console.log(response); //todo we should display something to the users here
}
}else{
input1.style.borderColor = "red";
input1.value = "";
Expand Down Expand Up @@ -175,9 +179,14 @@
studentArr.push($studentId1);
studentArr.push($studentId2);
await sendVerification(studentArr, token);
loading = false;
pageView.set(3);
let verifResponse = await sendVerification(studentArr, token);
if(verifResponse.status === 200){
loading = false;
pageView.set(3);
}else{
console.log(response); //todo we should display something to the users here
}
}else{
input1.style.borderColor = "red";
input1.value = "";
Expand Down

0 comments on commit 065e700

Please sign in to comment.