Skip to content

Commit

Permalink
feat(apps/web): Revert usage of memo
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov committed Feb 4, 2025
1 parent 43ade3c commit 1f99941
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { createFormActions, useForm } from "@mantine/form";
import { clone } from "ramda";
import { isFunction, isNilOrEmpty, isNotNilOrEmpty } from "ramda-adjunct";
import { FC, ReactNode, useEffect, useMemo, useRef } from "react";
import { FC, ReactNode, useEffect, useRef } from "react";
import { TbTrash } from "react-icons/tb";
import { parseAbiParameters } from "viem";

Expand Down Expand Up @@ -49,10 +49,7 @@ export const HumanReadableABIParameter: FC<HumanReadableABIParameter> = (

const ref = useRef<HTMLInputElement>(null);
const { entries, abiParamEntry } = form.getTransformedValues();
const error = useMemo(
() => (isNotNilOrEmpty(entries) ? checkError(entries) : null),
[entries],
);
const error = isNotNilOrEmpty(entries) ? checkError(entries) : null;
const onAbiParamsChange = props.onAbiParamsChange;

const addABIParam = () => {
Expand Down

0 comments on commit 1f99941

Please sign in to comment.