diff --git a/wallets/rn_cli_wallet/src/utils/HelperUtil.ts b/wallets/rn_cli_wallet/src/utils/HelperUtil.ts index 3268f1a9..df90499d 100644 --- a/wallets/rn_cli_wallet/src/utils/HelperUtil.ts +++ b/wallets/rn_cli_wallet/src/utils/HelperUtil.ts @@ -65,13 +65,11 @@ export function getSignTypedDataParamsData(params: string[]) { export function getWalletAddressFromParams(addresses: string[], params: any) { const paramsString = JSON.stringify(params); let address = ''; - addresses.forEach(addr => { - if (paramsString.includes(addr.toLowerCase())) { + if (paramsString.toLowerCase().includes(addr.toLowerCase())) { address = addr; } }); - return address; }