fix balance limit control logic

This commit is contained in:
keyan 2023-12-05 10:17:45 -06:00
parent 10203f565c
commit aaa47e9b67
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ export default {
let expirePivot = { seconds: expireSecs }
let invLimit = INV_PENDING_LIMIT
let balanceLimit = hodlInvoice || USER_IDS_BALANCE_NO_LIMIT.includes(Number(me.id)) ? 0 : BALANCE_LIMIT_MSATS
let balanceLimit = (hodlInvoice || USER_IDS_BALANCE_NO_LIMIT.includes(Number(me?.id))) ? 0 : BALANCE_LIMIT_MSATS
let id = me?.id
if (!me) {
expirePivot = { seconds: Math.min(expireSecs, 180) }