Skip to content

Commit

Permalink
useInputRules: remove unneeded check for inputRule (#57164)
Browse files Browse the repository at this point in the history
* useInputRules: remove unneeded check for inputRule

* Merge conditionals into one

Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>

---------

Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
  • Loading branch information
jsnajdr and tyxla committed Dec 19, 2023
1 parent 009cf9d commit caf213c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -142,8 +142,8 @@ export function useInputRules( props ) {
return;
}

if ( __unstableAllowPrefixTransformations && inputRule ) {
if ( inputRule() ) return;
if ( __unstableAllowPrefixTransformations && inputRule() ) {
return;
}

const value = getValue();
Expand Down

0 comments on commit caf213c

Please sign in to comment.