From 1e8d5cbc42fe5c318889d7db64bc9fb02612b757 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Wed, 18 Sep 2024 12:43:19 -0400 Subject: [PATCH] Use ternary instead of conditional eslint warns on this now --- web/src/components/player/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/player/index.js b/web/src/components/player/index.js index 44bbdf5..30d7022 100644 --- a/web/src/components/player/index.js +++ b/web/src/components/player/index.js @@ -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 &&