fix: getNFTs might return null and cause pages to crash (#735)

This commit is contained in:
runjuu
2023-07-05 16:27:21 +01:00
committed by GitHub
parent 31981faa59
commit b1566fc059
+1 -1
View File
@@ -38,7 +38,7 @@ export default async function SiteNFTPage({
const site = await fetchGetSite(params.site, queryClient)
const { t } = await useTranslation("common")
let nfts = await getNFTs(site?.owner)
let nfts = (await getNFTs(site?.owner)) ?? []
nfts.forEach((chain: any) => {
chain.assets = []