|
@ -106,12 +106,12 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { |
|
|
public async onSubmit() { |
|
|
public async onSubmit() { |
|
|
const account: CreateAccountDto | UpdateAccountDto = { |
|
|
const account: CreateAccountDto | UpdateAccountDto = { |
|
|
balance: this.accountForm.get('balance').value, |
|
|
balance: this.accountForm.get('balance').value, |
|
|
comment: this.accountForm.get('comment').value, |
|
|
comment: this.accountForm.get('comment').value || null, |
|
|
currency: this.accountForm.get('currency').value?.value, |
|
|
currency: this.accountForm.get('currency').value?.value, |
|
|
id: this.accountForm.get('accountId').value, |
|
|
id: this.accountForm.get('accountId').value, |
|
|
isExcluded: this.accountForm.get('isExcluded').value, |
|
|
isExcluded: this.accountForm.get('isExcluded').value, |
|
|
name: this.accountForm.get('name').value, |
|
|
name: this.accountForm.get('name').value, |
|
|
platformId: this.accountForm.get('platformId').value?.id ?? null |
|
|
platformId: this.accountForm.get('platformId').value?.id || null |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|