diff --git a/app/scripts/controllers/offlineTxCtrl.js b/app/scripts/controllers/offlineTxCtrl.js index 7a1b454697..3f6f092dce 100644 --- a/app/scripts/controllers/offlineTxCtrl.js +++ b/app/scripts/controllers/offlineTxCtrl.js @@ -74,7 +74,7 @@ var offlineTxCtrl = function($scope, $sce, walletService) { ajaxReq.getTransactionData($scope.tx.from, function(data) { if (data.error) throw data.msg; data = data.data; - $scope.gasPriceDec = $scope.gasPriceDef === 'GWEI' ? etherUnits.toGwei(data.gasprice, 'wei'):ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice))); + $scope.gasPriceDec = $scope.gasPriceDef === "GWEI" ? etherUnits.toGwei(ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice))), "wei") : ethFuncs.hexToDecimal(ethFuncs.sanitizeHex(ethFuncs.addTinyMoreToGas(data.gasprice))); $scope.nonceDec = ethFuncs.hexToDecimal(data.nonce); $scope.showWalletInfo = true; });