encrypted strings must be populated

This commit is contained in:
Daniel Lugo 2020-01-13 18:57:50 -04:00
parent 4947a4dbb6
commit 20b80bea13

View file

@ -857,7 +857,7 @@ const sendPayment = async (to, amount, memo, gun, user, SEA) => {
const order = { const order = {
amount: await SEA.encrypt(amount.toString(), ourSecret), amount: await SEA.encrypt(amount.toString(), ourSecret),
from: user._.sea.pub, from: user._.sea.pub,
memo: await SEA.encrypt(memo, ourSecret), memo: await SEA.encrypt(memo || 'no memo', ourSecret),
timestamp: Date.now() timestamp: Date.now()
} }