update PWA icon, fix floating number balance (#159)

This commit is contained in:
Doh
2025-06-04 18:40:48 -04:00
committed by GitHub
parent 98b5d5eebb
commit 8d2bfaf62c
12 changed files with 100 additions and 32 deletions

View File

@@ -130,7 +130,7 @@ async function saveData<T>(type: DataType, data: T): Promise<void> {
* Calculates the server's global freshness token based on all core data files.
* This is an expensive operation as it reads all data files.
*/
async function calculateServerFreshnessToken(): Promise<string> {
async function calculateServerFreshnessToken(): Promise<string | null> {
try {
const settings = await loadSettings();
const habits = await loadHabitsData();