Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
4eyes52 committed Sep 25, 2024
1 parent 4f73fb8 commit bd34137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/nextjs/src/app/_components/wallet/WalletSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export const WalletSheet = () => {
function usePrevious(isAccountOpen: boolean) {
const ref = useRef<boolean>();
useEffect(() => {
ref.current = isAccountOpen; //assign the value of ref to the argument
}, [isAccountOpen]); //this code will run when the value of 'value' changes
return ref.current; //in the end, return the current ref value.
ref.current = isAccountOpen;
}, [isAccountOpen]);
return ref.current;
}


Expand Down

0 comments on commit bd34137

Please sign in to comment.