WA-438 Refactor function, easier to read

This commit is contained in:
apanizo 2018-06-20 17:12:58 +02:00
parent cb721cb6bd
commit ead7239048
1 changed files with 4 additions and 2 deletions

View File

@ -126,8 +126,10 @@ export const processTransaction = async (
checkReceiptStatus(txHash.tx) checkReceiptStatus(txHash.tx)
const confirmationHash = thresholdReached ? EXECUTED_CONFIRMATION_HASH : txHash.tx const confirmationHash =
const executedConfirmations: List<Confirmation> = updateConfirmations(tx.get('confirmations'), userAddress, confirmationHash) thresholdReached ? EXECUTED_CONFIRMATION_HASH : txHash.tx
const executedConfirmations: List<Confirmation> =
updateConfirmations(tx.get('confirmations'), userAddress, confirmationHash)
return updateTransaction( return updateTransaction(
txName, txName,