1 2 3 4 5 6 7 8
export function cleanBank(data) { return { balance: data?.banking?.balance ?? 0, // TODO: make transactions good // history: data?.banking?.transactions ?? [] history: [] }; }