Skip to content

Commit

Permalink
UIIN-2634: Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrHladchenko1 committed Oct 31, 2023
1 parent b0f15a3 commit e21dc02
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/views/ItemView.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,13 +608,7 @@ class ItemView extends React.Component {
},
} = this.props;

if (!itemsResource?.hasLoaded ||
!instanceRecords?.hasLoaded ||
!holdingsRecords?.hasLoaded) {
return true;
}

return false;
return !itemsResource?.hasLoaded || !instanceRecords?.hasLoaded || !holdingsRecords?.hasLoaded;
}

render() {
Expand Down

0 comments on commit e21dc02

Please sign in to comment.