feat(SearchAssembly64, SearchCommoServe): replace truthy checks with double negation for clarity

This commit is contained in:
Jaime Idolpx 2026-06-15 16:11:24 -04:00
parent 5f638294bf
commit 3e6298fb5a
2 changed files with 4 additions and 4 deletions

View File

@ -531,7 +531,7 @@ export default function SearchAssembly64({ config, setConfig, onClose }: SearchA
{item.handle && !item.group && (
<span className="text-xs text-neutral-400">{item.handle}</span>
)}
{item.year && (
{!!item.year && (
<span className="text-xs text-neutral-400 flex items-center gap-0.5">
<Calendar className="w-3 h-3" />{item.year}
</span>
@ -539,7 +539,7 @@ export default function SearchAssembly64({ config, setConfig, onClose }: SearchA
{item.event && (
<span className="text-xs text-neutral-400 truncate">{item.event}</span>
)}
{item.place && (
{!!item.place && (
<span className="text-xs text-neutral-400">#{item.place}</span>
)}
</div>

View File

@ -520,7 +520,7 @@ export default function SearchCommoServe({ config, setConfig, onClose }: SearchC
{item.handle && !item.group && (
<span className="text-xs text-neutral-400">{item.handle}</span>
)}
{item.year && (
{!!item.year && (
<span className="text-xs text-neutral-400 flex items-center gap-0.5">
<Calendar className="w-3 h-3" />{item.year}
</span>
@ -528,7 +528,7 @@ export default function SearchCommoServe({ config, setConfig, onClose }: SearchC
{item.event && (
<span className="text-xs text-neutral-400 truncate">{item.event}</span>
)}
{item.place && (
{!!item.place && (
<span className="text-xs text-neutral-400">#{item.place}</span>
)}
</div>