Skip to content

Commit

Permalink
chore(suite): remove unnecessary ref check (should be enough to check…
Browse files Browse the repository at this point in the history
… for value)
  • Loading branch information
komret committed Jun 22, 2023
1 parent 7493a78 commit 9440271
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ export const useSignVerifyForm = (isSignPage: boolean, account: Account) => {

useEffect(() => {
if (formValues.message) {
if (control?.fieldsRef?.current?.message) trigger('message');
trigger('message');
}
}, [trigger, formValues.message, formValues.hex, control?.fieldsRef]);
}, [trigger, formValues.message, formValues.hex]);

useEffect(() => {
if (isSignPage) setValue('signature', '');
Expand Down

0 comments on commit 9440271

Please sign in to comment.