Skip to content

Commit 77f016a

Browse files
committed
fix: update node card widget to conditionally display badge based on connection status
1 parent 89a0fbf commit 77f016a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widgets/dashboard/nodes/node-card/node-card.widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function NodeCardWidget(props: IProps) {
142142
{node.port ? `:${node.port}` : ''}
143143
</Text>
144144

145-
{node.xrayUptime !== '0' && (
145+
{node.xrayUptime !== '0' && node.isConnected && (
146146
<Badge
147147
color="gray"
148148
leftSection={<PiCpu size={18} />}

0 commit comments

Comments
 (0)