Browse Source

refactor: simplify queryParams object in onHoldingClicked method

pull/3851/head
prakhar sharma 11 months ago
parent
commit
f3b63d05e9
  1. 2
      apps/client/src/app/components/home-holdings/home-holdings.component.ts

2
apps/client/src/app/components/home-holdings/home-holdings.component.ts

@ -122,7 +122,7 @@ export class HomeHoldingsComponent implements OnDestroy, OnInit {
public onHoldingClicked({ dataSource, symbol }: AssetProfileIdentifier) { public onHoldingClicked({ dataSource, symbol }: AssetProfileIdentifier) {
if (dataSource && symbol) { if (dataSource && symbol) {
this.router.navigate([], { this.router.navigate([], {
queryParams: { dataSource: dataSource, symbol: symbol, holdingDetailDialog: true } queryParams: { dataSource, symbol, holdingDetailDialog: true }
}); });
} }
} }

Loading…
Cancel
Save