Skip to content

Commit

Permalink
[@dhealthdapps/frontend] fix(widgets): fix query param for leader boa…
Browse files Browse the repository at this point in the history
…rd widget
  • Loading branch information
kravchenkodhealth authored and evias committed Jan 12, 2023
1 parent 4e314c7 commit 970f979
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class Leaderboard extends MetaView {
},
{
title: this.$t("common.all_time"),
value: "D",
value: "Y",
},
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<TopActivities :items="data.activities" />
</div>
<div class="dapp-leaderboard-item__amount text-right">
<span v-html="`$${formatAmount(data.amount, 2)} $ACTIV`" />
<span v-html="`${formatAmount(data.amount, 2)} $ACTIV`" />
</div>
</div>
<div v-else class="dapp-leaderboard-item__custom">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe("LeaderBoardRow -->", () => {
expect(
widget.find(".dapp-leaderboard-item__amount span").text()
).to.be.equal(
`$${widget.vm.formatAmount(widget.props("data").amount, 2)} ACTIV`
`${widget.vm.formatAmount(widget.props("data").amount, 2)} $ACTIV`
);
});
});
4 changes: 2 additions & 2 deletions runtime/dapp-frontend-vue/tests/unit/components/Stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const $store = new Vuex.Store({
{ minReferred: 10 },
{ minReferred: 50 },
{ minReferred: 100 },
]
})
],
}),
},
actions: {
initialize: jest.fn(),
Expand Down

0 comments on commit 970f979

Please sign in to comment.