diff --git a/src/components/calculation-history/CalculationHistory.tsx b/src/components/calculation-history/CalculationHistory.tsx
index 398698de..adf501a3 100644
--- a/src/components/calculation-history/CalculationHistory.tsx
+++ b/src/components/calculation-history/CalculationHistory.tsx
@@ -19,7 +19,6 @@ export const CalculationHistory = ({
Specific Emissions: {calculation.specificEmissions}
- {/* Render the selected countries */}
{Array.from(calculation.selectedCountries).map(
([countryName, percentage]) => (
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;