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" />
|
||||
<label
|
||||
label={profile((val) => {
|
||||
const data = val.split(" ");
|
||||
return data[data.length - 1];
|
||||
const match = val.match(/Active profile is\s+(.+)/);
|
||||
const activeProfile = match?.[1]?.trim() ?? "NA";
|
||||
return activeProfile;
|
||||
})}
|
||||
/>
|
||||
</box>
|
||||
|
||||
Reference in New Issue
Block a user