diff --git a/home/ags/files/Bar.tsx b/home/ags/files/Bar.tsx index 74bcc0a..96f584a 100644 --- a/home/ags/files/Bar.tsx +++ b/home/ags/files/Bar.tsx @@ -80,18 +80,18 @@ function Time({ format = "%H:%M:%S" }): JSX.Element { } function Temp(): JSX.Element { + let label = Variable("N/A"); if (sensorsAvailable) { - const temp = Variable("").poll(5000, 'sensors', out => { + label = Variable("").poll(5000, 'sensors', out => { const match = out.split('\n').find(line => line.includes('Tctl') || line.includes('Package'))?.match(/[0-9.]*°C/); return match ? match[0] : "N/A"; }) - return