Fix transaction title updating

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2021-06-20 13:53:07 -06:00
parent a4925ee783
commit 193faeb800
2 changed files with 3 additions and 2 deletions

3
package-lock.json generated
View file

@ -6699,7 +6699,8 @@
"ini": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true
},
"inquirer": {
"version": "7.1.0",

View file

@ -89,7 +89,7 @@ export class AddEditTransactionComponent implements OnInit, OnChanges {
observable = this.twigsService.updateTransaction(
this.currentTransaction.id,
{
name: this.currentTransaction.title,
title: this.currentTransaction.title,
description: this.currentTransaction.description,
amount: this.currentTransaction.amount * 100,
date: this.currentTransaction.date,