From 08225bffd8bf206fda40bdb0ed0670d1c1c883bf Mon Sep 17 00:00:00 2001 From: Rashmil Panchani Date: Mon, 10 Jun 2024 16:10:16 -0500 Subject: [PATCH 1/2] fix typo --- CHANGELOG.md | 6 ++++++ package-lock.json | 2 +- package.json | 2 +- src/components/UnitPreferencesDialog.tsx | 4 ++-- src/utils/format.ts | 8 ++++---- 5 files changed, 14 insertions(+), 8 deletions(-) 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..2cde751 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 convertFahrenheitTosius = (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; }; From d49c58411da4da14179c49439cb14ab1c01a3af7 Mon Sep 17 00:00:00 2001 From: Rashmil Panchani Date: Wed, 12 Jun 2024 09:18:05 -0500 Subject: [PATCH 2/2] fix typo in format function --- src/utils/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/format.ts b/src/utils/format.ts index 2cde751..da805a9 100644 --- a/src/utils/format.ts +++ b/src/utils/format.ts @@ -22,7 +22,7 @@ export const decimalFormat = (value: number, decimals = 2): string => { return formatter.format(value); }; -export const convertFahrenheitTosius = (temp: number): string => { +export const convertFahrenheitToCelsius = (temp: number): string => { const formattedCelsiusTemp = decimalFormat((temp - 32) * (5 / 9)); return formattedCelsiusTemp; };