mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-02-04 15:06:48 +05:30
fix: active profile not displaying
This commit is contained in:
@@ -66,8 +66,9 @@ export const SystemInfo = () => {
|
|||||||
<image iconName="fa-speed-symbolic" />
|
<image iconName="fa-speed-symbolic" />
|
||||||
<label
|
<label
|
||||||
label={profile((val) => {
|
label={profile((val) => {
|
||||||
const data = val.split(" ");
|
const match = val.match(/Active profile is\s+(.+)/);
|
||||||
return data[data.length - 1];
|
const activeProfile = match?.[1]?.trim() ?? "NA";
|
||||||
|
return activeProfile;
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
|
|||||||
Reference in New Issue
Block a user