We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e949323 commit 4358b20Copy full SHA for 4358b20
1 file changed
lib/ledger_entry.js
@@ -18,7 +18,7 @@ class LedgerEntry extends Model {
18
constructor (data = {}) {
19
super(data, FIELDS, BOOL_FIELDS, FIELD_KEYS)
20
const spl = this.description.split('wallet')
21
- this.wallet = (spl && spl[1]) ? spl[1].trim() : null
+ this.wallet = (spl && spl.length > 1) ? spl[spl.length - 1].trim() : null
22
}
23
24
static unserialize (arr) {
0 commit comments