Skip to content

Commit

Permalink
fix(guestsList): avoid boolean, remove nullish coalescing op (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Sep 10, 2020
1 parent b26d35f commit 53f74c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/guestsList/guestsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class GuestsList extends React.Component {

// Include the table header
let updatedHeight = (numberOfGuests + 1) * 42;
updatedHeight = (updatedHeight < 275 && updatedHeight) ?? 275;
updatedHeight = (updatedHeight < 275 && updatedHeight) || 275;

return (
<div className="curiosity-table-scroll" style={{ height: `${updatedHeight}px` }}>
Expand Down

0 comments on commit 53f74c7

Please sign in to comment.