diff --git a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts index ca93be029..c3d4bd894 100644 --- a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts +++ b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts @@ -30,6 +30,9 @@ export class LbtcPegsGraphComponent implements OnChanges { ) { } ngOnChanges() { + if (!this.data) { + return; + } this.pegsChartOptions = this.createChartOptions(this.data.series, this.data.labels); }