New Settings UI: Fix redundant ternary check for clientId

This commit is contained in:
Himad M 2024-12-02 09:44:38 -04:00
parent 386a2872f8
commit 53fb8926a8
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98

View file

@ -30,7 +30,7 @@ const AdvancedOptionsForm = ( { setCompleted } ) => {
const refClientSecret = useRef( null );
const isValidClientId = useMemo( () => {
return clientId ? /^A[\w-]{79}$/.test( clientId ) : true;
return /^A[\w-]{79}$/.test( clientId );
}, [ clientId ] );
const isFormValid = useMemo( () => {