Skip to content

Commit

Permalink
fix(ui): reset the loading spinner timer on error
Browse files Browse the repository at this point in the history
  • Loading branch information
TCL735 committed Jun 11, 2020
1 parent a9f8809 commit 5bc049c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/shared/components/ViewLoadingSpinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ViewLoadingSpinner: FunctionComponent<Props> = ({loading}) => {
}

useEffect(() => {
if (loading === RemoteDataState.Done) {
if (loading === RemoteDataState.Done || RemoteDataState.Error) {
resetTimer()
}

Expand Down

0 comments on commit 5bc049c

Please sign in to comment.