blob: a3db57747ad3d8de2c3e74f2b855e6ba39cc1878 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanBank = void 0;
function cleanBank(data) {
var _a, _b, _c, _d;
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 : []
};
}
exports.cleanBank = cleanBank;
|