Skip to content

Commit

Permalink
Fix Statusbar rendering NaN% for unsupported GPUs (#11655)
Browse files Browse the repository at this point in the history
  • Loading branch information
track0x1 committed May 30, 2024
1 parent 142641b commit 35946d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/Statusbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export default function Statusbar() {

const gpu = parseInt(stats.gpu);

if (isNaN(gpu)) {
return;
}

return (
<Link key={gpuTitle} to="/system#general">
{" "}
Expand Down

0 comments on commit 35946d3

Please sign in to comment.