Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const newInternalTxs = this.handleInternalTransactions(newStatus.txHash);
Engine.context.TransactionController.update({ internalTransactions: newInternalTxs });
this.setState({ withdrawalPending: false, withdrawalPendingValue: undefined });
}
}
}
if (newStatus.type !== status.type) {
newStatus.reset = true;
if (newStatus.type && newStatus.type !== 'DEPOSIT_PENDING') {
const notification_type = newStatus.type
.toLowerCase()
.split('_')
.reverse()
.join('_');
hideMessage();
setTimeout(() => {
TransactionsNotificationManager.showInstantPaymentNotification(notification_type);
}, 300);
}
}
this.setState({ status: newStatus });
}