mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 20:51:12 -05:00
Fix: Prevent rendering 0 for rating
This commit is contained in:
@@ -288,7 +288,7 @@ export function AutocompleteSearch({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{(item as SearchResult).rating && (item as SearchResult).rating! > 0.0 && (
|
{((item as SearchResult).rating ?? 0) > 0 && (
|
||||||
<div className="flex items-center gap-1 ml-3">
|
<div className="flex items-center gap-1 ml-3">
|
||||||
<Zap className="w-3 h-3 text-yellow-500" />
|
<Zap className="w-3 h-3 text-yellow-500" />
|
||||||
<span className="text-sm font-medium">{(item as SearchResult).rating!.toFixed(1)}</span>
|
<span className="text-sm font-medium">{(item as SearchResult).rating!.toFixed(1)}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user