From b1533c5ee2ec69c8f2ec9d92728cea8a1f6ed1d7 Mon Sep 17 00:00:00 2001 From: nukeop <12746779+nukeop@users.noreply.github.com> Date: Tue, 21 May 2024 12:28:11 +0200 Subject: [PATCH] Fix #1609 --- .../app/app/components/PlayQueue/index.tsx | 13 +++-- .../StreamVerificationContainer/index.tsx | 49 +++++++++---------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/packages/app/app/components/PlayQueue/index.tsx b/packages/app/app/components/PlayQueue/index.tsx index ff81c090a4..104698c836 100644 --- a/packages/app/app/components/PlayQueue/index.tsx +++ b/packages/app/app/components/PlayQueue/index.tsx @@ -143,7 +143,7 @@ const PlayQueue: React.FC = ({ } }; - const QueueRow = React.memo(({data, index, style}: QueueRowProps) => { + const QueueRow = React.memo(({ data, index, style }: QueueRowProps) => { const item = data.queue.queueItems[index] as QueueItemType; return ( = ({ style={style ? { ...draggableProvided.draggableProps.style, ...style - } :draggableProvided.draggableProps.style} + } : draggableProvided.draggableProps.style} > = ({ track={item} onSelect={onSelectTrack(index)} onRemove={onRemoveTrack(index)} - duration={formatTrackDuration(t)(item)} + duration={formatTrackDuration(t)(item)} /> } isQueueItemCompact={data.settings.compactQueueBar} @@ -209,7 +209,7 @@ const PlayQueue: React.FC = ({ compact={Boolean(settings.compactQueueBar)} /> - = ({ )} - + { + settings?.useStreamVerification && + + } ); diff --git a/packages/app/app/containers/StreamVerificationContainer/index.tsx b/packages/app/app/containers/StreamVerificationContainer/index.tsx index 6a4807333e..339fb98cce 100644 --- a/packages/app/app/containers/StreamVerificationContainer/index.tsx +++ b/packages/app/app/containers/StreamVerificationContainer/index.tsx @@ -113,29 +113,28 @@ export const StreamVerificationContainer: React.FC = () => { return null; } - return settings?.isReady && - settings?.useStreamVerification && - ; + return settings?.isReady && + ; };