Skip to content

Commit

Permalink
add context load check (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyvu authored Feb 24, 2025
1 parent bb2c181 commit 955ec24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-app/src/features/dashboard/Lists/spas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const SpasList = () => {

if (context.error) return <ErrorAlert error={context.error} />;

if (isLoading === true) {
if (context.isLoading || isLoading === true) {
return <LoadingSpinner />;
}

Expand Down
2 changes: 1 addition & 1 deletion react-app/src/features/dashboard/Lists/waivers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const WaiversList = () => {

if (context.error) return <ErrorAlert error={context.error} />;

if (isLoading === true) {
if (context.isLoading || isLoading === true) {
return <LoadingSpinner />;
}

Expand Down

0 comments on commit 955ec24

Please sign in to comment.