Skip to content

Commit 9c8a59a

Browse files
committed
fix: album wrapper
1 parent 53e2ec1 commit 9c8a59a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/frontend/src/components/album/AlbumWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const AlbumWrapper = ({ imgSrc, title, score }: AlbumWrapperProps) => {
1111
<div className="bg-white rounded-2xl px-4 pt-4 pb-8 w-fit h-fit shadow-lg hover:scale-110 hover:cursor-pointer transition-all duration-300">
1212
<AlbumCard imgSrc={imgSrc} title={title} className="shadow-none" />
1313
<div className="flex flex-col space-y-2 mt-4">
14-
<p className="text-sm text-gray-500">Similarity: {score?.toFixed(2)}%</p>
14+
{score && <p className="text-sm text-gray-500">Similarity: {score?.toFixed(2)}%</p>}
15+
1516
</div>
1617
</div>
1718
);

0 commit comments

Comments
 (0)