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

Commit

Permalink
fix(agent-detail): fix the language code in the payload (#320)
Browse files Browse the repository at this point in the history
* fix(agent-detail): fixes the language-code that is set to the dynamicContent property by setting it to the languageCode variable in the component

* chore(agent-detail): removes console.log
  • Loading branch information
pratimasakinala authored Apr 15, 2021
1 parent 20fa58c commit f946737
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit f946737

Please sign in to comment.