Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHJ committed Mar 16, 2023
1 parent fd29313 commit edb0c8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/stores/crossChain.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class CrossChain {
value: item.srcChainType === 'WAN' && item.tokenSymbol === 'WAN' ? formatNum(formatNumByDecimals(item.value || '0', decimals)) : formatNum(formatNumByDecimals(item.contractValue, decimals)),
crossValue: item.srcChainType === 'WAN' && item.tokenSymbol === 'WAN' ? formatNum(formatNumByDecimals(item.value || '0', decimals)) : formatNum(formatNumByDecimals(item.contractValue || '0', decimals)),
crosschainFee: item.crosschainFee,
receivedAmount: item.receivedAmount,
receivedAmount: item.status === 'Redeemed' ? item.receivedAmount : '0',
status: item.status,
sendTime: item.sendTime,
approveTxHash: item.approveTxHash,
Expand Down
5 changes: 4 additions & 1 deletion src/app/stores/openstoreman.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ class OpenStoreman {
runInAction(() => {
// Re-Duplicates by wkAddr
let temp = _.unionBy(ret.flat(), 'wkAddr');
temp = temp.filter(v => !v.isWhite);
temp = temp.filter(v => {
let ret = this.storemanGroupList.find(j => [v.groupId, v.nextGroupId].includes(j.groupId));
return !v.isWhite && !!ret
});
temp.forEach(item => {
let temp = this.storemanGroupList.find(v => [item.groupId, item.nextGroupId].includes(v.groupId));
item.chain1 = temp.chain1;
Expand Down

0 comments on commit edb0c8b

Please sign in to comment.