Skip to content

Commit 924fc09

Browse files
authored
fix: fix issue with update check failure (#833)
* fix: fix issue with update check failure * docs: update changelog
1 parent 5a70066 commit 924fc09

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Information about release notes of Coco App is provided here.
2424
### 🐛 Bug fix
2525

2626
- fix: correct enter key behavior #828
27+
- fix: fix issue with update check failure #833
2728

2829
### ✈️ Improvements
2930

src/components/UpdateApp/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ const UpdateApp = ({ isCheckPage }: UpdateAppProps) => {
5050
}, []);
5151

5252
useEffect(() => {
53-
if (!snapshotUpdate) return;
54-
55-
checkUpdate().catch((error) => {
56-
addError("Update failed:" + error, "error");
57-
});
53+
checkUpdateStatus();
5854
}, [snapshotUpdate]);
5955

6056
useEffect(() => {

0 commit comments

Comments
 (0)