diff --git a/src/providers/gain.ts b/src/providers/gain.ts index 77ab2de..8a5e908 100644 --- a/src/providers/gain.ts +++ b/src/providers/gain.ts @@ -57,7 +57,7 @@ export class AvgChangeProvider { arrLoss.push(localLoss); if (!this.filled) { - return; + return { gain: undefined, loss: undefined, prev: value }; } gain = avg(arrGain, this.period);