Null check.

This commit is contained in:
Mike Cao 2024-03-27 20:49:48 -07:00
parent a933f5b4a0
commit 538fb49219

View File

@ -11,7 +11,7 @@ export function OSTable(props: MetricsTableProps) {
<FilterLink id="os" value={os} label={formatOS(os)}> <FilterLink id="os" value={os} label={formatOS(os)}>
<img <img
src={`${process.env.basePath || ''}/images/os/${ src={`${process.env.basePath || ''}/images/os/${
os?.toLowerCase().replaceAll(/\W/g, '-') || 'unknown' os?.toLowerCase()?.replaceAll(/\W/g, '-') || 'unknown'
}.png`} }.png`}
alt={os} alt={os}
width={16} width={16}