Skip to content

Commit

Permalink
Added loading message (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Aug 29, 2023
1 parent 427c13c commit 5bbec33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/component/GradeDist/GradeDist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ const GradeDist: FC<GradeDistProps> = (props) => {
</Grid.Row>
</div>
);
} else if (gradeDistData == null) { // null if still fetching, don't display anything while it still loads
return null;
} else if (gradeDistData == null) { // null if still fetching, display loading message
return <>Loading Distribution..</>;
} else { // gradeDistData is empty, did not receive any data from API call or received an error, display an error message
return (
<>
Expand Down

0 comments on commit 5bbec33

Please sign in to comment.