Skip to content

Commit

Permalink
fix: stop using useMemo for ncToAccept
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Feb 20, 2025
1 parent 77626f8 commit 1f9d62d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export const NewNanoContractTransactionRequest = ({ ncTxRequest }) => {
* transaction.
*/
const [ncAddress, setNcAddress] = useState(registeredNc?.address || firstAddress.address);
const ncToAccept = useMemo(() => ({
const ncToAccept = {
...nc,
caller: ncAddress,
}), [ncAddress])
};

// Check if we have enough balance for deposit actions
const hasInsufficientBalance = useMemo(() => {
Expand Down

0 comments on commit 1f9d62d

Please sign in to comment.