Fixed number casting on download number

This commit is contained in:
Lucas Oliveira 2023-11-18 16:37:05 -03:00
commit d009476a8e

View file

@ -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) => {