🚧 Begin to refactor the manual connection hook

This commit is contained in:
Philipp Stracker 2024-11-04 16:50:50 +01:00
parent 5a1adc825c
commit c5d7ce211a
No known key found for this signature in database
3 changed files with 41 additions and 18 deletions

View file

@ -92,11 +92,7 @@ const WelcomeForm = ( { setCompleted } ) => {
const handleConnect = async () => {
try {
const res = await connectManual(
clientId,
clientSecret,
isSandboxMode
);
const res = await connectManual();
if ( ! res.success ) {
throw new Error( 'Request failed.' );
}