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" /> <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>