Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tiliv committed Apr 27, 2024
1 parent fcd5fb1 commit e3841b6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/hooks/useInventory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default function useInventory(subject) {

const equip = function(kind, id) {
setEquipment((equipment) => ({
...equipment,
[kind]: id,
}));
...equipment,
[kind]: id,
}));
};

const acquire = function(kind, item) {
Expand All @@ -51,15 +51,15 @@ export default function useInventory(subject) {
0
);
setInventory((inventory) => ({
...inventory,
[kind]: [...inventory[kind], { ...item, id: maxId + 1 }],
}));
...inventory,
[kind]: [...inventory[kind], { ...item, id: maxId + 1 }],
}));
};

return {
inventory,
equipment,
equip,
acquire,
}
};
}

0 comments on commit e3841b6

Please sign in to comment.