fix: reduce empty array (#447)

This commit is contained in:
enpitsulin 2023-04-28 09:49:31 +08:00 committed by GitHub
parent 2e0d2d836b
commit 3a9420fc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export default function SubdomainIndex() {
value: `${
tips.data?.pages?.[0]?.list
?.map((i) => +i.amount)
.reduce((acr, cur) => acr + cur) || 0
.reduce((acr, cur) => acr + cur, 0) ?? 0
} MIRA`,
url: `/dashboard/${subdomain}/tokens`,
},