We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edbae3e commit 7320840Copy full SHA for 7320840
1 file changed
examples/api/src/views/Updater.svelte
@@ -12,10 +12,14 @@
12
isChecking = true
13
try {
14
const update = await check()
15
- onMessage(`Should update: ${update.available}`)
16
- onMessage(update)
+ if (update) {
+ onMessage(`Should update: ${update.available}`)
17
+ onMessage(update)
18
- newUpdate = update
19
+ newUpdate = update
20
+ } else {
21
+ onMessage('No update available')
22
+ }
23
} catch (e) {
24
onMessage(e)
25
} finally {
0 commit comments