mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
New Settings UI: Fix redundant ternary check for clientId
This commit is contained in:
parent
386a2872f8
commit
53fb8926a8
1 changed files with 1 additions and 1 deletions
|
@ -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( () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue