Skip to content

Commit

Permalink
OP-1541: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Sep 6, 2023
1 parent 2d10f2f commit 0dcdd8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/InsureeItemEligibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class InsureeItemEligibility extends Component {
</Grid>
<ProgressOrError size={16} progress={isFetching} error={error} />
<Box flexGrow={1}>
{isFetched && (
{isFetched && !error && (
<Eligibility
minDate={eligibility.minServiceDate}
remaining={eligibility.itemLeft}
Expand Down
2 changes: 1 addition & 1 deletion src/components/InsureeServiceEligibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class InsureeServiceEligibility extends Component {
</Grid>
<ProgressOrError size={16} progress={isFetching} error={error} />
<Box flexGrow={1}>
{isFetched && (
{isFetched && !error && (
<Eligibility
minDate={eligibility.minServiceDate}
remaining={eligibility.serviceLeft}
Expand Down
2 changes: 1 addition & 1 deletion src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const reducer = (
fetchingInsureeItemEligibility: false,
fetchedInsureeServiceEligibility: false,
errorInsureeServiceEligibility: null,
insureeInsureeServiceEligibility: null,
insureeServiceEligibility: null,
fetchingPolicyValues: false,
fetchedPolicyValues: false,
errorPolicyValues: null,
Expand Down

0 comments on commit 0dcdd8a

Please sign in to comment.