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')