Fixed number casting on download number
This commit is contained in:
parent
dc1bb19c13
commit
d009476a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ export default function CollectionCardComponent({
|
||||||
|
|
||||||
function handleInstall() {
|
function handleInstall() {
|
||||||
const temp = downloads_count;
|
const temp = downloads_count;
|
||||||
setDownloads_count((old) => old + 1);
|
setDownloads_count((old) => Number(old) + 1);
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
getComponent(data.id)
|
getComponent(data.id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue