From a8eabd2bc0a1b78c73a63a68665cb19fd3a7ada1 Mon Sep 17 00:00:00 2001 From: vetalcore Date: Wed, 4 Dec 2024 15:50:00 +0200 Subject: [PATCH] fix: resolve pr comment --- packages/nami/src/ui/app/pages/send.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nami/src/ui/app/pages/send.tsx b/packages/nami/src/ui/app/pages/send.tsx index ea2c4d025..e6ef137ad 100644 --- a/packages/nami/src/ui/app/pages/send.tsx +++ b/packages/nami/src/ui/app/pages/send.tsx @@ -462,9 +462,9 @@ const Send = ({ ); useEffect(() => { - if (!lockedStakeRewards) return; - - setShowSwitchToLaceBannerDebounced(reachedMaxAdaAmount); + setShowSwitchToLaceBannerDebounced( + !!lockedStakeRewards && reachedMaxAdaAmount, + ); }, [lockedStakeRewards, reachedMaxAdaAmount]); return (