chore: catch error when fetching changelog

This commit is contained in:
Aman Harwara
2023-09-08 13:49:32 +05:30
parent 4385315dae
commit bf3f6cec43

View File

@@ -32,7 +32,7 @@ const WhatsNew = ({ application }: { application: WebApplication }) => {
const lastReadVersion = useMemo(() => application.changelogService.getLastReadVersion(), [application])
useEffect(() => {
void application.changelogService.getChangelog().then(setChangelog)
application.changelogService.getChangelog().then(setChangelog).catch(console.error)
}, [application])
useEffect(() => {