Prevents disconnect store when already onboarded via URL params

This commit is contained in:
Alex P 2023-05-31 18:42:23 +03:00
parent c03b3d86b5
commit d2aa43d3d9
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -168,8 +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;
}