diff --git a/CHANGELOG.md b/CHANGELOG.md index e45c71e..b2a32c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2024-06-10 + +### Fixed + +- Typo in word 'Celsius' [#100](https://github.com/Oceans-1876/challenger-portal/issues/100) + ## [1.0.1] - 2024-01-17 ### Fixed diff --git a/package-lock.json b/package-lock.json index 6a2a693..dd7933f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "challenger-portal", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1714025..77676a2 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "challenger-portal", - "version": "1.0.1", + "version": "1.0.2", "description": "", "repository": "https://github.com/Oceans-1876/challenger-portal", "main": "src/app.tsx", diff --git a/src/components/UnitPreferencesDialog.tsx b/src/components/UnitPreferencesDialog.tsx index fc5a037..39c52a7 100644 --- a/src/components/UnitPreferencesDialog.tsx +++ b/src/components/UnitPreferencesDialog.tsx @@ -23,12 +23,12 @@ interface Map { const possibleTempUnits = [ { value: 'F', unit: 'Fahrenheit' }, - { value: 'C', unit: 'Celcius' } + { value: 'C', unit: 'Celsius' } ]; export const tempUnitMap: Map = { F: 'Fahrenheit', - C: 'Celcius' + C: 'Celsius' }; const possibleDepthUnits = [ diff --git a/src/utils/format.ts b/src/utils/format.ts index fb167c9..da805a9 100644 --- a/src/utils/format.ts +++ b/src/utils/format.ts @@ -22,12 +22,12 @@ export const decimalFormat = (value: number, decimals = 2): string => { return formatter.format(value); }; -export const convertFahrenheitToCelcius = (temp: number): string => { - const formattedCelciusTemp = decimalFormat((temp - 32) * (5 / 9)); - return formattedCelciusTemp; +export const convertFahrenheitToCelsius = (temp: number): string => { + const formattedCelsiusTemp = decimalFormat((temp - 32) * (5 / 9)); + return formattedCelsiusTemp; }; -export const convertCelciusToFahrenheit = (temp: number): string => { +export const convertCelsiusToFahrenheit = (temp: number): string => { const formattedFahrenheitTemp = decimalFormat(temp * (9 / 5) + 32); return formattedFahrenheitTemp; };