fix empty category
This commit is contained in:
@@ -145,6 +145,7 @@ const buildUpdate = (): UpdateTransactionDTO => {
|
||||
categoryId: transactionCategory.value.id,
|
||||
comment: transactionComment.value,
|
||||
amount: transactionAmount.value,
|
||||
fees: 0,
|
||||
isDone: isDone.value,
|
||||
date: transactionDate.value
|
||||
} as UpdateTransactionDTO
|
||||
@@ -161,6 +162,7 @@ const buildCreate = (): CreateTransactionDTO => {
|
||||
categoryId: transactionCategory.value.id,
|
||||
comment: transactionComment.value,
|
||||
amount: transactionAmount.value,
|
||||
fees: 0,
|
||||
date: transactionDate.value
|
||||
} as CreateTransactionDTO
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user