Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
fix: fix empty vendor inventory to match norm (#192)
Browse files Browse the repository at this point in the history
* fix: fix empty vendor inventory to match norm
  • Loading branch information
cujarrett authored Jan 4, 2022
1 parent bf3b034 commit d886123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/get-vendor-inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ module.exports.getVendorInventory = async (vendorHash) => {

if (message === "The Vendor you requested was not found.") {
return {
inventory: [],
inventory: {
armor: [],
weapons: [],
mods: []
},
metadata: {
name,
now: new Date().toISOString(),
Expand Down

0 comments on commit d886123

Please sign in to comment.