Skip to content

Commit e69a135

Browse files
committed
Added default value for pet heldItem
1 parent e4ff4d1 commit e69a135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pet/Pet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Pet {
2121
#activeAbilities = [];
2222

2323
constructor({
24-
uuid, type, tier: rarity, exp, level: simulatedLevel, active, heldItem, skin, candyUsed,
24+
uuid, type, tier: rarity, exp, level: simulatedLevel, active, heldItem = null, skin, candyUsed,
2525
}) {
2626
if (typeof type !== 'string') return this;
2727
this.uuid = uuid;

0 commit comments

Comments
 (0)