Skip to content

Commit

Permalink
feat(neuron-wallet): trim the keywords on searching txs
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 10, 2019
1 parent 22ab3d8 commit 8ed5501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/controllers/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class TransactionsController {

const addresses = (await AddressesService.allAddressesByWalletId(walletID)).map(addr => addr.address)

const transactions = await TransactionsService.getAllByAddresses({ pageNo, pageSize, addresses }, keywords)
const transactions = await TransactionsService.getAllByAddresses({ pageNo, pageSize, addresses }, keywords.trim())

if (!transactions) {
throw new ServiceHasNoResponse('Transactions')
Expand Down

0 comments on commit 8ed5501

Please sign in to comment.