mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Do not handle vaulting settings change when not onboarded
Otherwise vaulting gets disabled after disconnect and re-onboarding
This commit is contained in:
parent
c3887bec7a
commit
65007a7bae
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class SettingsListener {
|
|||
* Prevent enabling both Pay Later messaging and PayPal vaulting
|
||||
*/
|
||||
public function listen_for_vaulting_enabled() {
|
||||
if ( ! $this->is_valid_site_request() ) {
|
||||
if ( ! $this->is_valid_site_request() || State::STATE_ONBOARDED !== $this->state->current_state() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue