From 4c6a487a725611f80f7dcbf543e018d3dbb43b0b Mon Sep 17 00:00:00 2001 From: Justin <57725347+juskek@users.noreply.github.com> Date: Thu, 6 Jul 2023 12:38:21 +0100 Subject: [PATCH] Cleanup --- src/data/calculations/CalculationsRepository.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data/calculations/CalculationsRepository.ts b/src/data/calculations/CalculationsRepository.ts index d62e717e..6aee8fcd 100644 --- a/src/data/calculations/CalculationsRepository.ts +++ b/src/data/calculations/CalculationsRepository.ts @@ -60,7 +60,7 @@ export class CalculationsRepository implements ICalculationsRepository { const data = await this.remoteDataSource.get({ ongoingCalculation: null, }); - console.log("data", data); + if (data["ongoingCalculation"] !== null) { return JSON.parse( data["ongoingCalculation"] as string @@ -76,12 +76,10 @@ export class CalculationsRepository implements ICalculationsRepository { try { const ongoingCalculation = await this._getOngoingCalculation(); if (ongoingCalculation !== null) { - console.log("ongoingCalculation", ongoingCalculation); return ongoingCalculation; } const oldCalculations = await this.getAllCalculations(); if (oldCalculations.length > 0) { - console.log("oldCalculations", oldCalculations); return oldCalculations[0]; } return null;