Skip to content

Commit

Permalink
[explorer] fix: filter rich list (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLaw authored Apr 18, 2022
1 parent fcef910 commit 2f66412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/config/filters.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Constants from '../config/constants';
import http from '../infrastructure/http';
import {
TransactionType,
TransactionGroup,
Expand Down Expand Up @@ -192,7 +191,7 @@ export const account = [
icon: 'mdi-cash',
value: {
orderBy: AccountOrderBy.Balance,
mosaicId: http.networkCurrency.mosaicId
mosaicId: ''
}
}
];
Expand Down
10 changes: 5 additions & 5 deletions src/infrastructure/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ class AccountService {
const searchCriteria = {
pageNumber,
pageSize,
order: Order.Desc
order: Order.Desc,
...filterValue
};

// Prevent new MosaicId throw error if mosaicId is undefined
if (filterValue.mosaicId) {
// set default network mosaic id
if ('' === filterValue.mosaicId) {
Object.assign(searchCriteria, {
...filterValue,
mosaicId: new MosaicId(filterValue.mosaicId)
mosaicId: new MosaicId(http.networkCurrency.mosaicId)
});
}

Expand Down

0 comments on commit 2f66412

Please sign in to comment.