From d009476a8e325959c251af007ebf9bd289621f3a Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Sat, 18 Nov 2023 16:37:05 -0300 Subject: [PATCH] Fixed number casting on download number --- src/frontend/src/components/cardComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx index 42711750f..c3df25ba0 100644 --- a/src/frontend/src/components/cardComponent/index.tsx +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -56,7 +56,7 @@ export default function CollectionCardComponent({ function handleInstall() { const temp = downloads_count; - setDownloads_count((old) => old + 1); + setDownloads_count((old) => Number(old) + 1); setLoading(true); getComponent(data.id) .then((res) => {