fix empty category

This commit is contained in:
xds
2025-11-07 17:06:17 +03:00
parent e56b01480f
commit 87f64b0fb6
2 changed files with 4 additions and 2 deletions

View File

@@ -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 {

View File

@@ -26,7 +26,7 @@ export interface CreateTransactionDTO {
comment: string
amount: number
fees: number | null
date: string
date: string | Date
}
export interface UpdateTransactionDTO {
@@ -37,5 +37,5 @@ export interface UpdateTransactionDTO {
amount: number
fees: number | null
isDone: boolean
date: string
date: string | Date
}