mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-25 06:39:53 -04:00
fix(gui): Auto updater prompt (#405)
This commit is contained in:
parent
0fb12fd240
commit
11ab7aaa84
4 changed files with 1676 additions and 1566 deletions
|
@ -30,7 +30,7 @@
|
|||
"@tauri-apps/plugin-process": "^2.0.0",
|
||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||
"@tauri-apps/plugin-store": "^2.0.0",
|
||||
"@tauri-apps/plugin-updater": "^2.0.0",
|
||||
"@tauri-apps/plugin-updater": "2.7.1",
|
||||
"@types/react-redux": "^7.1.34",
|
||||
"humanize-duration": "^3.32.1",
|
||||
"jdenticon": "^3.3.0",
|
||||
|
|
|
@ -66,6 +66,7 @@ export default function UpdaterDialog() {
|
|||
// Check for updates when component mounts
|
||||
check()
|
||||
.then((updateResponse) => {
|
||||
console.log("updateResponse", updateResponse);
|
||||
setAvailableUpdate(updateResponse);
|
||||
})
|
||||
.catch((err) => {
|
||||
|
@ -76,7 +77,7 @@ export default function UpdaterDialog() {
|
|||
}, []);
|
||||
|
||||
// If no update is available, don't render the dialog
|
||||
if (!availableUpdate?.available) return null;
|
||||
if (availableUpdate === null) return null;
|
||||
|
||||
function hideNotification() {
|
||||
setAvailableUpdate(null);
|
||||
|
|
3236
src-gui/yarn.lock
3236
src-gui/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue