From 8ed55018bdc3eabe34c370634ed1eea5e5f38df3 Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 11 Nov 2019 00:08:47 +0800 Subject: [PATCH] feat(neuron-wallet): trim the keywords on searching txs --- packages/neuron-wallet/src/controllers/transactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neuron-wallet/src/controllers/transactions.ts b/packages/neuron-wallet/src/controllers/transactions.ts index b2e1a0a18c..c48786676d 100644 --- a/packages/neuron-wallet/src/controllers/transactions.ts +++ b/packages/neuron-wallet/src/controllers/transactions.ts @@ -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')