Skip to content

Commit

Permalink
pagination fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed May 10, 2021
1 parent 200e5f5 commit 0cd5038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/dcrdata/public/js/controllers/address_controller.js
Expand Up @@ -399,6 +399,8 @@ export default class extends Controller {

setTablePaginationLinks () {
const tablePagesLink = ctrl.tablePaginationParams
if (tablePagesLink.length === 0) return ctrl.tablePaginationTarget.classList.add('d-hide')
ctrl.tablePaginationTarget.classList.remove('d-hide')
const txCount = parseInt(ctrl.paginationParams.count)
const offset = parseInt(ctrl.paginationParams.offset)
const pageSize = parseInt(ctrl.paginationParams.pagesize)
Expand Down
2 changes: 1 addition & 1 deletion db/dcrpg/pgblockchain.go
Expand Up @@ -1846,7 +1846,7 @@ func (pgb *ChainDB) TreasuryBalance() (_ *dbtypes.TreasuryBalance, err error) {

return &dbtypes.TreasuryBalance{
Balance: added + gen - spent,
TxCount: addCount + spendCount + genCount + immatureCount,
TxCount: addCount + spendCount + genCount,
AddCount: addCount,
Added: added,
SpendCount: spendCount,
Expand Down

0 comments on commit 0cd5038

Please sign in to comment.