diff --git a/web/src/components/Statusbar.tsx b/web/src/components/Statusbar.tsx index 01a2ba225..41bd9372f 100644 --- a/web/src/components/Statusbar.tsx +++ b/web/src/components/Statusbar.tsx @@ -81,6 +81,10 @@ export default function Statusbar() { const gpu = parseInt(stats.gpu); + if (isNaN(gpu)) { + return; + } + return ( {" "} @@ -97,7 +101,7 @@ export default function Statusbar() { : "text-danger" }`} /> - {gpuTitle} {isNaN(gpu) ? 'unknown' : `${gpu}%`} + {gpuTitle} {gpu}% );