Skip to content

Commit

Permalink
Simplify IfAllGranted.js rendering, make it consistent with other com…
Browse files Browse the repository at this point in the history
…ponents.
  • Loading branch information
ledsoft committed Feb 10, 2023
1 parent b84fcac commit 0fc7ede
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/IfAllGranted.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const IfAllGranted = (props) => {
return props.unauthorized;
}
}
if (!Array.isArray(props.children)) {
return props.children ? props.children : null;
}
return <React.Fragment>
{props.children}
</React.Fragment>;
Expand Down

0 comments on commit 0fc7ede

Please sign in to comment.