Skip to content

Commit

Permalink
fix: adjust debounce timing
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Dec 6, 2024
1 parent 7ee87f0 commit a32cbd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/nami/src/ui/app/pages/send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,8 @@ const Send = ({
const setMessageDebounced = useMemo(() => debounce(setMessage, 300), []);
const isOffline = networkConnection === NetworkConnectionStates.OFFLINE;

const setShowSwitchToLaceBannerDebounced = useMemo(
() => debounce(setShowSwitchToLaceBanner, 300),
[],
const setShowSwitchToLaceBannerDebounced = useConstant(() =>
debounce(setShowSwitchToLaceBanner, 500),
);

const reachedMaxAdaAmount = useMemo(
Expand Down

0 comments on commit a32cbd4

Please sign in to comment.