From 8d32980320c0f12cdbaf9ed10262895b0b13ab55 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Aug 2024 21:26:33 -0300 Subject: [PATCH] prevent screen to crash due re render issue on network switch (#2357) --- wormhole-connect/src/views/Bridge/RouteOptions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wormhole-connect/src/views/Bridge/RouteOptions.tsx b/wormhole-connect/src/views/Bridge/RouteOptions.tsx index 501de0815..dd97a9d7e 100644 --- a/wormhole-connect/src/views/Bridge/RouteOptions.tsx +++ b/wormhole-connect/src/views/Bridge/RouteOptions.tsx @@ -300,7 +300,7 @@ function RouteOption(props: { return REASON_AMOUNT_TOO_LOW; } }, [manualAddressTarget, props]); - + const Icon = useCallback(() => props.route.icon(), [props]); return ( fromTokenConfig && toTokenConfig && ( @@ -341,7 +341,7 @@ function RouteOption(props: { /> } text={props.route.routePath || props.route.providedBy} />