Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

fix(agent-detail): fix the language code in the payload #320

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class AgentDetailSmartComponent implements OnInit {
private agentService: AgentService,
private formService: FormService,
private router: Router,
private translocoService: TranslocoService,
) {
this.agent = this.activatedRoute.snapshot.data.agent;
this.languageCode =
Expand Down Expand Up @@ -222,7 +221,7 @@ export class AgentDetailSmartComponent implements OnInit {
dynamicContentDTO,
);
payload.dynamicContent = {
[this.translocoService.getActiveLang()]: dynamicContentPayload,
[this.languageCode]: dynamicContentPayload,
};

return payload;
Expand Down