fix(plugins) consolidate confirmedDeposit to authorizedDeposit
This commit is contained in:
parent
ca8f9420af
commit
94a9adefa7
1 changed files with 2 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ function _setDispenseStatus(deviceFingerprint, tx, status, deposit) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var fiat = 0;
|
var fiat = 0;
|
||||||
if (status === 'authorizedDeposit' || status === 'confirmedDeposit')
|
if (status === 'authorizedDeposit')
|
||||||
fiat = tx.fiat;
|
fiat = tx.fiat;
|
||||||
|
|
||||||
var statusObject = null;
|
var statusObject = null;
|
||||||
|
|
@ -338,7 +338,7 @@ function _setDispenseStatus(deviceFingerprint, tx, status, deposit) {
|
||||||
function _checkTx(deviceFingerprint, tx, txInfo) {
|
function _checkTx(deviceFingerprint, tx, txInfo) {
|
||||||
// accept if tx is already confirmed
|
// accept if tx is already confirmed
|
||||||
if (txInfo.confirmations > 0) {
|
if (txInfo.confirmations > 0) {
|
||||||
_setDispenseStatus(deviceFingerprint, tx, 'confirmedDeposit', txInfo.amount);
|
_setDispenseStatus(deviceFingerprint, tx, 'authorizedDeposit', txInfo.amount);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue