mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 04:41:55 +05:30
fix(network): handle empty ssid gracefully
This commit is contained in:
@@ -22,6 +22,7 @@ export const Network = () => {
|
||||
switch (wifi.internet) {
|
||||
case 0:
|
||||
const ssid = wifi.ssid;
|
||||
ssid ? ssid : "";
|
||||
let text = ssid.length > 10 ? ssid.substring(0, 10) + "..." : ssid;
|
||||
return text;
|
||||
case 1:
|
||||
|
Reference in New Issue
Block a user