Skip to content

Commit

Permalink
Fix logic (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dellisd committed Jan 30, 2021
1 parent 1f7ef0e commit 54fd768
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pages/dashboard/ravensQuest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ const RavensQuest = () => {
};

useEffect(() => {
request('/api/ravensQuest/progress').then((res: any) => {
if (res) {
updateProgress(res as RavensProgress);
}
});
request('/api/ravensQuest/progress')
.then((res) => res.json())
.then((json) => {
if (json.track0) {
updateProgress(json as RavensProgress);
}
});
}, []);

return (
Expand Down

0 comments on commit 54fd768

Please sign in to comment.