Skip to content

Commit

Permalink
Merge pull request #673 from pqv199x/fix-rewards
Browse files Browse the repository at this point in the history
Update reward epoch displaying
  • Loading branch information
thanhson1085 authored Jun 27, 2019
2 parents efb7f33 + 0349806 commit 3a19777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apis/candidates.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,14 +646,14 @@ router.get('/:candidate/:owner/getRewards', [
const total = db.Status.countDocuments({
candidate: candidate,
epoch: {
$lt: currentEpoch - 2
$lte: currentEpoch - 2
}
})

const epochData = await db.Status.find({
candidate: candidate,
epoch: {
$lt: currentEpoch - 2
$lte: currentEpoch - 2
}
}).sort({ epoch: -1 }).limit(limit).skip(skip).lean().exec()
let masternodesEpochs = []
Expand Down
2 changes: 1 addition & 1 deletion app/components/candidates/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
:per-page="mnRewardsPerPage"
:show-empty="true"
:class="`tomo-table tomo-table--mnrewards${rewardLoading ? ' loading' : ''}`"
empty-text="There are no rewards to show"
:empty-text="`There are no ${(currentTab !== '' ? 'records' : 'rewards')} to show`"
stacked="md" >

<template
Expand Down

0 comments on commit 3a19777

Please sign in to comment.