mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-02-04 15:06:48 +05:30
fix(network): fix ssid length issue
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user