store user login
This commit is contained in:
@@ -52,7 +52,7 @@ export function share(part: number | undefined, total: number | undefined): numb
|
||||
}
|
||||
|
||||
export const percent = (value: number | null): string =>
|
||||
value === null ? '—' : `${(value * 100).toFixed(value < 0.1 ? 1 : 0)}%`;
|
||||
value === null ? '—' : value === 0 ? '0%' : `${(value * 100).toFixed(value < 0.1 ? 1 : 0)}%`;
|
||||
|
||||
/** A short local time — "14:32". Used on bills and last-sync stamps. */
|
||||
export const clock = (date: Date | null): string =>
|
||||
|
||||
Reference in New Issue
Block a user