diff options
| author | Adam Soltys <[email protected]> | 2023-01-18 19:44:27 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-18 19:44:27 -0800 |
| commit | 67c4af186fec0423664b18847921eb9696a1eeef (patch) | |
| tree | 85e0fb00f3aa89fdde1cbb667bf801564bff7610 /src/lib/socket.js | |
| parent | b1ad12734eeafc36a07bd76f649a98ae9ade5723 (diff) | |
| download | coinos-ui-67c4af186fec0423664b18847921eb9696a1eeef.tar.gz coinos-ui-67c4af186fec0423664b18847921eb9696a1eeef.zip | |
pots
Diffstat (limited to 'src/lib/socket.js')
| -rw-r--r-- | src/lib/socket.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/socket.js b/src/lib/socket.js index 755c87e4..86083974 100644 --- a/src/lib/socket.js +++ b/src/lib/socket.js @@ -58,8 +58,7 @@ export const messages = (data) => ({ async payment() { let { amount, invoice } = data; - - if (invoice) invalidate('app:invoice'); + invalidate('app:invoice'); let payments = get(txns); let i = payments.findIndex((p) => p.id === data.id); @@ -118,5 +117,5 @@ function reconnectToWebsocket() { if (currentReconnectDelay < maxReconnectDelay) { currentReconnectDelay *= 2; } - connect(); + connect(token); } |
