Skip to content

Commit

Permalink
fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Dec 23, 2019
1 parent 8d0a1fc commit e374061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/ui/universal-dapp-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) {

function clickButton (valArr, inputsValues) {
let logMsg
if (lookupOnly) {
if (!lookupOnly) {
logMsg = `call to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}`
} else {
logMsg = `transact to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}`
Expand Down Expand Up @@ -254,7 +254,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
// contractsDetails is used to resolve libraries
txFormat.buildData(args.contractName, args.contractAbi, {}, false, args.funABI, args.funABI.type !== 'fallback' ? value : '', (error, data) => {
if (!error) {
if (lookupOnly) {
if (!lookupOnly) {
self.logCallback(`${logMsg} pending ... `)
} else {
self.logCallback(`${logMsg}`)
Expand Down

0 comments on commit e374061

Please sign in to comment.