Rebuild frontend.

This commit is contained in:
James Cole
2021-07-18 19:23:50 +02:00
parent 704cf26725
commit e959dbc6e0
27 changed files with 332 additions and 100 deletions

View File

@@ -615,7 +615,7 @@ export default {
// console.log('now at ' + i);
// for transfers, overrule both the source and the destination:
if ('Transfer' === this.transactionType) {
if ('transfer' === this.transactionType.toLowerCase()) {
data.transactions[i].source_name = null;
data.transactions[i].destination_name = null;
if (i > 0) {
@@ -624,7 +624,7 @@ export default {
}
}
// for deposits, overrule the destination and ignore the rest.
if ('Deposit' === this.transactionType) {
if ('deposit' === this.transactionType.toLowerCase()) {
data.transactions[i].destination_name = null;
if (i > 0) {
data.transactions[i].destination_id = data.transactions[0].destination_id;
@@ -632,7 +632,7 @@ export default {
}
// for withdrawals, overrule the source and ignore the rest.
if ('Withdrawal' === this.transactionType) {
if ('withdrawal' === this.transactionType.toLowerCase()) {
data.transactions[i].source_name = null;
if (i > 0) {
data.transactions[i].source_id = data.transactions[0].source_id;