From 56950192160539450e8c4960673ee289a84d463e Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 26 Sep 2021 13:41:33 +0400 Subject: [PATCH] Check for data to possibly fix Liquid test --- .../components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts | 3 +++ 1 file changed, 3 insertions(+) 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); }