Skip to content

Commit

Permalink
Use ternary instead of conditional
Browse files Browse the repository at this point in the history
eslint warns on this now
  • Loading branch information
Sean-Der committed Sep 18, 2024
1 parent c033d6e commit 1e8d5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function Player({ cinemaMode }) {
controls
playsInline
className={`bg-black w-full ${cinemaMode && "h-full"}`}
style={cinemaMode && {
style={cinemaMode ? {
maxHeight: '100vh',
maxWidth: '100vw'
} || {}}
} : {}}
/>

{videoLayers.length >= 2 &&
Expand Down

0 comments on commit 1e8d5cb

Please sign in to comment.