diff --git a/src/app/deposits/components/create-deposit-dialog/create-deposit-dialog.component.ts b/src/app/deposits/components/create-deposit-dialog/create-deposit-dialog.component.ts index b81cb8369..da09729f0 100644 --- a/src/app/deposits/components/create-deposit-dialog/create-deposit-dialog.component.ts +++ b/src/app/deposits/components/create-deposit-dialog/create-deposit-dialog.component.ts @@ -5,7 +5,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { FormControl, Validators } from '@angular/forms'; import { DepositParams } from '@vality/fistful-proto/deposit'; -import { DialogSuperclass, NotifyLogService, progressTo, tapLog } from '@vality/matez'; +import { DialogSuperclass, NotifyLogService, progressTo } from '@vality/matez'; import { ThriftFormExtension, isTypeWithAliases } from '@vality/ng-thrift'; import { DomainObjectsStoreService } from '~/api/domain-config'; @@ -83,11 +83,11 @@ export class CreateDepositDialogComponent extends DialogSuperclass ({ ...value, party_id: wallet.object.wallet_config.data.party_ref.id, - source_id: sources.find((s) => s.id === value.body.currency.symbolic_code) - ?.id, + source_id: sources.find( + (s) => s.currency_symbolic_code === value.body.currency.symbolic_code, + )?.id, }), ), - tapLog(), switchMap((params) => this.depositManagementService.Create(params, new Map())), progressTo(this.progress$), takeUntilDestroyed(this.dr),