feat(SearchAssembly64, SearchCommoServe): replace truthy checks with double negation for clarity
This commit is contained in:
parent
5f638294bf
commit
3e6298fb5a
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user