Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/PrediOrg/dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
PrediOrg committed Nov 10, 2024
2 parents 4a9fb0c + cbec086 commit 4472243
Show file tree
Hide file tree
Showing 4 changed files with 10,293 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_APP_ProjectId = "dad663c9259ecce3bd0267a56b0c8dd9"
VUE_APP_ProjectId = "54be3a717f79b3df0c24d9030489861d"
2 changes: 1 addition & 1 deletion src/config/constants.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Network = {
name: 'USDT',
address: '0x55d398326f99059ff775485246999027b3197955',
decimals: 18,
icon: '/images/USDT.png',
icon: '/images/usdt.png',
},
},
};
Expand Down
8 changes: 4 additions & 4 deletions src/views/NFT/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="value">
<div class="reward-box">
<img class="icon" src="@/assets/images/USDT.png" alt="" />
{{ rewardEth | decimalsPrecision(payToken.decimals, 4) }}
{{ reward | decimalsPrecision(payToken.decimals, 4) }}
</div>
</div>
<!-- v-if="parseFloat(reward) !== 0"-->
Expand Down Expand Up @@ -260,10 +260,10 @@ export default {
this.showChoosePrice = false;
},
async init() {
if (this.chainId == this.$store.state.desireChainId && this.account && this.chainName == 'ICPCHAIN') {
let { reward, rewardEth } = await cdsSdk.rewardQuery(this.account);
if (this.chainId == this.$store.state.desireChainId && this.account ) {
let { reward, } = await cdsSdk.rewardQuery(this.account);
this.reward = reward.toString();
this.rewardEth = rewardEth.toString();
}
this.loadData();
},
Expand Down
Loading

0 comments on commit 4472243

Please sign in to comment.