fix: active profile not displaying

This commit is contained in:
tux
2025-12-29 11:47:53 +05:30
parent b0d22ef4bc
commit f46e52d427

View File

@@ -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>