diff options
author | Eric Bailey <git@esb.lol> | 2023-11-04 12:42:27 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-04 12:42:27 -0500 |
commit | df0dcf32f99631c52b039c7f1934481924d37465 (patch) | |
tree | f190c6e24744b01be9a98c4a9e25282bf050a178 /src/lib/hooks | |
parent | 5fd41ad5a2734e1721a82134efe5487e818b790d (diff) | |
download | voidsky-df0dcf32f99631c52b039c7f1934481924d37465.tar.zst |
Fix immediate TS errors
Diffstat (limited to 'src/lib/hooks')
-rw-r--r-- | src/lib/hooks/useOTAUpdate.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/hooks/useOTAUpdate.ts b/src/lib/hooks/useOTAUpdate.ts index 5155a808f..d7855b2d4 100644 --- a/src/lib/hooks/useOTAUpdate.ts +++ b/src/lib/hooks/useOTAUpdate.ts @@ -34,18 +34,18 @@ export function useOTAUpdate() { // show a popup modal showUpdatePopup() } catch (e) { - console.error('useOTAUpdate: Error while checking for update', e) - store.log.error('useOTAUpdate: Error while checking for update', e) + store.log.error('useOTAUpdate: Error while checking for update', { + error: e, + }) } }, [showUpdatePopup, store.log]) const updateEventListener = useCallback( (event: Updates.UpdateEvent) => { store.log.debug('useOTAUpdate: Listening for update...') if (event.type === Updates.UpdateEventType.ERROR) { - store.log.error( - 'useOTAUpdate: Error while listening for update', - event.message, - ) + store.log.error('useOTAUpdate: Error while listening for update', { + message: event.message, + }) } else if (event.type === Updates.UpdateEventType.NO_UPDATE_AVAILABLE) { // Handle no update available // do nothing |