Fix Statusbar rendering NaN% for unsupported GPUs

This commit is contained in:
Tom B 2024-05-30 14:11:00 -04:00 committed by GitHub
parent 142641b387
commit ee1894f6b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ export default function Statusbar() {
: "text-danger"
}`}
/>
{gpuTitle} {gpu}%
{gpuTitle} {isNaN(gpu) ? 'unknown' : `${gpu}%`}
</div>
</Link>
);