Skip to content

Commit

Permalink
fix estimate fee
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Apr 12, 2022
1 parent cbc5c7f commit 6d8f9ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composables/use-fee.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,12 @@ export default function useFee(/*{txParams, baseCoinAmount = 0, fallbackToCoinTo
function cleanObject(txParams) {
let clean = {};
for (const key in txParams) {
if (typeof txParams[key] === 'object') {
if (isEmpty(txParams[key])) {
clean[key] = undefined;
} else if (typeof txParams[key] === 'object') {
clean[key] = cleanObject(txParams[key]);
} else {
clean[key] = isEmpty(txParams[key]) ? undefined : txParams[key];
clean[key] = txParams[key];
}
}

Expand Down

0 comments on commit 6d8f9ef

Please sign in to comment.