Skip to content

Commit

Permalink
update reward epoch, messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pqv199x committed Jun 27, 2019
1 parent 2d2ba6e commit 58ff8fb
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 58ff8fb

Please sign in to comment.