mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
fix(network): handle empty ssid gracefully
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user