refactor: settings in params

This commit is contained in:
Carlos Valente
2024-12-15 12:02:04 +01:00
committed by Carlos Valente
parent e91d5f5cd9
commit 41fe213ebb
6 changed files with 113 additions and 115 deletions
@@ -32,6 +32,10 @@ export function getTimerByType(freezeEnd: boolean, timerObject?: TimerTypeParams
}
}
/**
* Parses a string to semantically verify if it represents a true value
* Used in the context of parsing search params and local storage items which can be strings or null
*/
export function isStringBoolean(text: string | null) {
if (text === null) {
return false;