diff options
| author | Adam Soltys <[email protected]> | 2022-12-15 13:35:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-15 13:35:30 -0800 |
| commit | 1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57 (patch) | |
| tree | 7c95dfb6e60bcc8b5cd758b86f21b2a3e18efe7d /lib/utils.js | |
| parent | e8525c6b4402346b5e19d7dd40d79e076a95941f (diff) | |
| download | coinos-server-1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57.tar.gz coinos-server-1ac8f4279e0e53e2d4e18b59ff4b54acee2d2c57.zip | |
prettier
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils.js b/lib/utils.js index c9670339..45e50243 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -166,8 +166,8 @@ export const derivePayRequest = async ({ amount, memo, tip }) => { if (!tip) tip = 0; let value = amount + tip; - if (!memo) memo = "coinos"; - return ( - await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360) - ).bolt11; + if (!memo) memo = "coinos"; + return ( + await ln.invoice(value ? `${value}sat` : "any", new Date(), memo, 360) + ).bolt11; }; |
