Prevents disconnect store when already onboarded via URL params

This commit is contained in:
Emili Castells Guasch 2023-04-20 14:52:38 +02:00
parent 1039ab6e72
commit 5834c42e11

View file

@ -168,7 +168,7 @@ class SettingsListener {
* Listens if the merchant ID should be updated.
*/
public function listen_for_merchant_id() {
if ( ! $this->is_valid_site_request() ) {
if ( ! $this->is_valid_site_request() || $this->state->current_state() === State::STATE_ONBOARDED ) {
return;
}