fix(network): fix ssid length issue

This commit is contained in:
tux
2025-12-25 03:45:54 +05:30
parent ed56ef463e
commit b0d22ef4bc

View File

@@ -21,8 +21,7 @@ export const Network = () => {
const wifi = net.wifi; const wifi = net.wifi;
switch (wifi.internet) { switch (wifi.internet) {
case 0: case 0:
const ssid = wifi.ssid; let ssid = wifi.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: