fix: hotfix

This commit is contained in:
chaosBreaking
2019-09-29 13:09:35 +08:00
parent fc383be299
commit 0cb188bb8c
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ FundModel.prototype.addFund = async (txlist = [], option) => {
tokenType: 'vic', // 目前设定只能挖出矿晶vic
remain: this.asset
});
actionPromiseList.push(action.save());
typeof action.save === 'function' && actionPromiseList.push(action.save());
txObj.amount = depositAmount; // 之后返回fundList里的数值需要把区块链的数值乘以比率
return createNewFund(txObj);
});