Skip to content

Commit

Permalink
fix: get space selection working
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Jan 18, 2023
1 parent 0b6c319 commit 39a6639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/react/w3console/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function SpaceSelector () {
Space selector
<ul>
{spaces.map((space, i) => (
<li className={`${space.sameAs(currentSpace) ?? 'font-bold'} hover:font-bold`}>
<button onClick={() => setCurrentSpace(space)}>
<li className={`${space.sameAs(currentSpace) ? 'font-bold' : ''} hover:font-bold`}>
<button onClick={() => setCurrentSpace(space.did())}>
{space.name() || `Space ${i + 1}`}
</button>
</li>
Expand Down

0 comments on commit 39a6639

Please sign in to comment.