fix(network): handle empty ssid gracefully

This commit is contained in:
tux
2025-09-28 14:26:25 +05:30
parent 0f3fb291ec
commit eb27e270df

View File

@@ -22,6 +22,7 @@ export const Network = () => {
switch (wifi.internet) { switch (wifi.internet) {
case 0: case 0:
const ssid = wifi.ssid; const ssid = wifi.ssid;
ssid ? ssid : "";
let text = ssid.length > 10 ? ssid.substring(0, 10) + "..." : ssid; let text = ssid.length > 10 ? ssid.substring(0, 10) + "..." : ssid;
return text; return text;
case 1: case 1: