Skip to content

Commit a617074

Browse files
committed
Fix city/state labels not showing
1 parent ca4f14d commit a617074

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/streamwall-shared/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export interface StreamData extends ContentDisplayOptions {
3131
source?: string
3232
notes?: string
3333
status?: string
34+
city?: string
35+
state?: string
3436
_id: string
3537
_dataSource: string
3638
}

packages/streamwall/src/renderer/overlay.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@ function Overlay({
7777
isListening={isListening}
7878
>
7979
<StreamIcon url={content.url} />
80-
<span>{data.label}</span>
80+
<span>
81+
{data.label ? (
82+
data.label
83+
) : (
84+
<>
85+
{data.source} &ndash; {data.city} {data.state}
86+
</>
87+
)}
88+
</span>
8189
{(isListening || isBackgroundListening) && <FaVolumeUp />}
8290
</StreamTitle>
8391
)}

0 commit comments

Comments
 (0)