diff options
Diffstat (limited to 'build/cleaners/skyblock/bank.js')
-rw-r--r-- | build/cleaners/skyblock/bank.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/cleaners/skyblock/bank.js b/build/cleaners/skyblock/bank.js index a3db577..9836685 100644 --- a/build/cleaners/skyblock/bank.js +++ b/build/cleaners/skyblock/bank.js @@ -2,11 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.cleanBank = void 0; function cleanBank(data) { - var _a, _b, _c, _d; + var _a, _b; return { balance: (_b = (_a = data === null || data === void 0 ? void 0 : data.banking) === null || _a === void 0 ? void 0 : _a.balance) !== null && _b !== void 0 ? _b : 0, // TODO: make transactions good - history: (_d = (_c = data === null || data === void 0 ? void 0 : data.banking) === null || _c === void 0 ? void 0 : _c.transactions) !== null && _d !== void 0 ? _d : [] + // history: data?.banking?.transactions ?? [] + history: [] }; } exports.cleanBank = cleanBank; |