aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-24 16:44:47 -0400
committerAdam Soltys <[email protected]>2021-05-24 16:44:47 -0400
commit205b9ba828922e0ff8d1b47481a569d199d43201 (patch)
tree957d41e2ec8d63ab6dadd21061a87ff2dd84789b /routes/lightning
parent3ce9c73b1d4a281fe1475206d49c4f436e0b992e (diff)
downloadcoinos-server-205b9ba828922e0ff8d1b47481a569d199d43201.tar.gz
coinos-server-205b9ba828922e0ff8d1b47481a569d199d43201.zip
check for payment address
Diffstat (limited to 'routes/lightning')
-rw-r--r--routes/lightning/receive.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js
index 6b8a9077..6f7d5fed 100644
--- a/routes/lightning/receive.js
+++ b/routes/lightning/receive.js
@@ -82,7 +82,7 @@ const handlePayment = async msg => {
});
let c = convert[msg.payment_request];
- if (c) {
+ if (msg.payment_request && c) {
user.account = account;
try {