mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
fix: oldObj values lost
This commit is contained in:
parent
b36868e90d
commit
5774180ce3
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const retryWithDelay = async function (fn, retryCount = 0) {
|
|||
}
|
||||
|
||||
const mapCharge = (obj, oldObj = {}) => {
|
||||
const charge = _.clone(obj)
|
||||
const charge = {...obj, ...oldObj}
|
||||
|
||||
charge.progress = obj.time_left < 0 ? 1 : 1 - obj.time_left / obj.time
|
||||
charge.time = minutesToTime(obj.time)
|
||||
|
|
Loading…
Add table
Reference in a new issue