diff --git a/src/components/MoreInfoCard.js b/src/components/MoreInfoCard.js index 8de1ce7..3154878 100644 --- a/src/components/MoreInfoCard.js +++ b/src/components/MoreInfoCard.js @@ -1,9 +1,10 @@ import React from 'react'; function MoreInfoCard({ data }) { - const { formattedData, degreeSymbol, main, clouds, t } = data; + const averageTemp = (formattedData.temp_min + formattedData.temp_max) / 2; + return (
@@ -33,8 +34,15 @@ function MoreInfoCard({ data }) { {degreeSymbol}
++ {t('avg-temp')}:{' '} + + {averageTemp} + {degreeSymbol} + +