diff --git a/src/components/ResourceBar.astro b/src/components/ResourceBar.astro index 384b8fd..64421b9 100644 --- a/src/components/ResourceBar.astro +++ b/src/components/ResourceBar.astro @@ -13,10 +13,7 @@ const resources = await getUserResources(new ObjectId(Astro.cookies.get('userid' const resourceArray = []; for(const key in resources) { - resourceArray.push({ - name: key, - amount: resources[key as never] - }); + resourceArray.push(resources[key as never]); } ---