Skip to content

Commit

Permalink
use const keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Jun 27, 2024
1 parent de7a0f2 commit 8e9fe2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/[network]/avatar/[address].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ export const getServerSideProps: GetServerSideProps<AvatarPageProps> = async (
};
}

var consumables = inventoryJsonObj.consumables?.map(parseToItem) ?? [];
var costumes = inventoryJsonObj.costumes?.map(parseToItem) ?? [];
var equipments = inventoryJsonObj.equipments?.map(parseToItem) ?? [];
var materials = inventoryJsonObj.materials?.map(parseToItem) ?? [];
const consumables = inventoryJsonObj.consumables?.map(parseToItem) ?? [];
const costumes = inventoryJsonObj.costumes?.map(parseToItem) ?? [];
const equipments = inventoryJsonObj.equipments?.map(parseToItem) ?? [];
const materials = inventoryJsonObj.materials?.map(parseToItem) ?? [];
return {
items: consumables.concat(costumes).concat(equipments).concat(materials),
};
Expand Down

0 comments on commit 8e9fe2c

Please sign in to comment.