From 0e87e6608ffb0c91c68926a15c2825ef3f3cade3 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 14 Jul 2022 18:21:16 +0300 Subject: [PATCH] fix: handle Connect/Disconnect failure state --- lnbits/extensions/watchonly/static/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnbits/extensions/watchonly/static/js/index.js b/lnbits/extensions/watchonly/static/js/index.js index 5448159e..19d375a1 100644 --- a/lnbits/extensions/watchonly/static/js/index.js +++ b/lnbits/extensions/watchonly/static/js/index.js @@ -546,6 +546,7 @@ new Vue({ this.serial.writer = textEncoder.writable.getWriter() } catch (error) { + this.serial.selectedPort = null this.$q.notify({ type: 'warning', message: 'Cannot open serial port!', @@ -573,6 +574,7 @@ new Vue({ timeout: 5000 }) } catch (error) { + this.serial.selectedPort = null console.log('### error', error) this.$q.notify({ type: 'warning',