Skip to content

Commit

Permalink
chore: update from review
Browse files Browse the repository at this point in the history
rather than janky Fragment wrapping, fix return type of SpaceEnsurer
  • Loading branch information
travis committed Apr 26, 2023
1 parent 290bb0e commit 5b18db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/react/w3console/src/components/SpaceEnsurer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export function SpaceEnsurer ({
children
}: {
children: JSX.Element | JSX.Element[];
}): JSX.Element {
}): JSX.Element | JSX.Element[]{
const [{ spaces, account }] = useKeyring();
if (spaces && spaces.length > 0) {
return <>{children}</>;
return children;
}
return (
<div className="flex flex-col justify-center items-center h-screen">
Expand Down

0 comments on commit 5b18db1

Please sign in to comment.