chore: catch error when fetching changelog
This commit is contained in:
@@ -32,7 +32,7 @@ const WhatsNew = ({ application }: { application: WebApplication }) => {
|
|||||||
const lastReadVersion = useMemo(() => application.changelogService.getLastReadVersion(), [application])
|
const lastReadVersion = useMemo(() => application.changelogService.getLastReadVersion(), [application])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
void application.changelogService.getChangelog().then(setChangelog)
|
application.changelogService.getChangelog().then(setChangelog).catch(console.error)
|
||||||
}, [application])
|
}, [application])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user