Skip to content

Commit 2e9ff13

Browse files
committed
fix: abreviation should be used even if it's an empty string
1 parent 03dda28 commit 2e9ff13

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/webui/src/client/ui/PieceIcons/Renderers/CamInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function CamInputIcon({
3232
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '75px', fontWeight: 100 }}
3333
className="label"
3434
>
35-
{abbreviation ? abbreviation : 'C'}
35+
{abbreviation !== undefined ? abbreviation : 'C'}
3636
<tspan style={{ fontFamily: 'Roboto', fontWeight: 'normal' }}>
3737
{inputIndex !== undefined ? inputIndex : ''}
3838
</tspan>

packages/webui/src/client/ui/PieceIcons/Renderers/GraphicsInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function GraphicsInputIcon({ abbreviation }: { abbreviation?: string }):
2222
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '75px', fontWeight: 100 }}
2323
className="label"
2424
>
25-
{abbreviation ? abbreviation : 'G'}
25+
{abbreviation !== undefined ? abbreviation : 'G'}
2626
</tspan>
2727
</text>
2828
</svg>

packages/webui/src/client/ui/PieceIcons/Renderers/LiveSpeakInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function LiveSpeakInputIcon({ abbreviation }: { abbreviation?: string }):
2727
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '62px', fontWeight: 100 }}
2828
className="label"
2929
>
30-
{abbreviation ? abbreviation : 'LSK'}
30+
{abbreviation !== undefined ? abbreviation : 'LSK'}
3131
</tspan>
3232
</text>
3333
</svg>

packages/webui/src/client/ui/PieceIcons/Renderers/RemoteInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function RemoteInputIcon({
2929
}): JSX.Element {
3030
return (
3131
<BaseRemoteInputIcon className="remote">
32-
{abbreviation ? abbreviation : 'LIVE'}
32+
{abbreviation !== undefined ? abbreviation : 'LIVE'}
3333
<tspan style={{ fontFamily: 'Roboto', fontWeight: 'normal' }}>{inputIndex ?? ''}</tspan>
3434
</BaseRemoteInputIcon>
3535
)

packages/webui/src/client/ui/PieceIcons/Renderers/RemoteSpeakInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function RemoteSpeakInputIcon({ abbreviation }: { abbreviation?: string }
2727
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '62px', fontWeight: 100 }}
2828
className="label"
2929
>
30-
{abbreviation ? abbreviation : 'RSK'}
30+
{abbreviation !== undefined ? abbreviation : 'RSK'}
3131
</tspan>
3232
</text>
3333
</svg>

packages/webui/src/client/ui/PieceIcons/Renderers/VTInputIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function VTInputIcon({ abbreviation }: { abbreviation?: string }): JSX.El
2222
y="71.513954"
2323
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '75px', fontWeight: 100 }}
2424
>
25-
{abbreviation ? abbreviation : 'VT'}
25+
{abbreviation !== undefined ? abbreviation : 'VT'}
2626
</tspan>
2727
</text>
2828
</svg>

0 commit comments

Comments
 (0)