diff --git a/src/client/components/msComponent/MSComponentDetailed.tsx b/src/client/components/msComponent/MSComponentDetailed.tsx index 3cb6ef27..80a656e1 100644 --- a/src/client/components/msComponent/MSComponentDetailed.tsx +++ b/src/client/components/msComponent/MSComponentDetailed.tsx @@ -170,7 +170,8 @@ export const ComponentStateBadgeActionable = (props: Omit { let sleepingRender: React.JSX.Element = null; const {data} = props; - if(isComponentSourceApiJson(data)) { + const isSource = isComponentSourceApiJson(data) + if(isSource) { const { sleeping, wakeAt @@ -207,7 +208,7 @@ export const ComponentDetailedDesktop = (props: {data?: ComponentCommonApiJson, - {props.live ? : } + {props.live ? : } {isComponentTypeSource(props.data.mode) ? 'Plays' : 'Scrobbles'}