From 5c58b4007762baeb3124cfca3f6785e7ddfdfe2f Mon Sep 17 00:00:00 2001 From: Anastasios Date: Tue, 19 Nov 2024 17:48:51 +0400 Subject: [PATCH] fix: manage tokens toggle, closes #5974 --- .../crypto-asset-item/crypto-asset-item-toggle.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/components/crypto-asset-item/crypto-asset-item-toggle.tsx b/src/app/components/crypto-asset-item/crypto-asset-item-toggle.tsx index 8f9ea19456..62d0ffbe93 100644 --- a/src/app/components/crypto-asset-item/crypto-asset-item-toggle.tsx +++ b/src/app/components/crypto-asset-item/crypto-asset-item-toggle.tsx @@ -43,6 +43,10 @@ export function CryptoAssetItemToggle({ }); } + function onClick() { + switchRef.current?.click(); + } + const toggle = ( @@ -58,7 +63,7 @@ export function CryptoAssetItemToggle({ return ( - switchRef.current?.click()} data-testid={sanitize(assetId)}> +