Skip to content

Commit

Permalink
changed to toFixed(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomcv committed Jul 21, 2020
1 parent 8cc897a commit 4458a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataSection/DataSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DataSection: FunctionComponent<DataSectionProps> = ({

const { main, weather, sys } = data;

const tempValue = main.temp.toFixed();
const tempValue = main.temp.toFixed(1);
const tempSymbol = selectedTemperatureUnit === 'celsius' ? '°C' : '°F';
const weatherIcon = weather[0].icon; // first element is the "primary"

Expand Down

0 comments on commit 4458a3c

Please sign in to comment.