Merge pull request #1781 from RafaelTaranto/fix/increasing-discount-safeguard
LAM-1281 fix: increasing discount safeguard
This commit is contained in:
commit
e4c4dae293
1 changed files with 2 additions and 2 deletions
|
|
@ -102,8 +102,8 @@ function diff (oldTx, newTx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureRatchet (oldField, newField, fieldKey) {
|
function ensureRatchet (oldField, newField, fieldKey) {
|
||||||
const monotonic = ['cryptoAtoms', 'fiat', 'send', 'sendConfirmed', 'operatorCompleted', 'timedout', 'txVersion', 'batched']
|
const monotonic = ['cryptoAtoms', 'fiat', 'send', 'sendConfirmed', 'operatorCompleted', 'timedout', 'txVersion', 'batched', 'discount']
|
||||||
const free = ['sendPending', 'error', 'errorCode', 'customerId']
|
const free = ['sendPending', 'error', 'errorCode', 'customerId', 'discountSource']
|
||||||
|
|
||||||
if (_.isNil(oldField)) return true
|
if (_.isNil(oldField)) return true
|
||||||
if (_.includes(fieldKey, monotonic)) return isMonotonic(oldField, newField, fieldKey)
|
if (_.includes(fieldKey, monotonic)) return isMonotonic(oldField, newField, fieldKey)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue