Feature/add fire calculator (#822)

* Add fire calculator

* Update changelog
This commit is contained in:
Thomas Kaul
2022-04-10 20:02:31 +02:00
committed by GitHub
parent d5ba624403
commit 23f2ac472e
13 changed files with 477 additions and 16 deletions

View File

@@ -176,3 +176,7 @@ export function parseDate(date: string) {
export function prettifySymbol(aSymbol: string): string {
return aSymbol?.replace(ghostfolioScraperApiSymbolPrefix, '');
}
export function transformTickToAbbreviation(value: number) {
return value < 1000000 ? `${value / 1000}K` : `${value / 1000000}M`;
}