diff --git a/app/Import/Providers/BaseImport.php b/app/Import/Providers/BaseImport.php index 1ec4151e88ad..365ee46b37cc 100644 --- a/app/Import/Providers/BaseImport.php +++ b/app/Import/Providers/BaseImport.php @@ -173,7 +173,7 @@ class BaseImport $is_free_hosted_client = $this->company->account->isFreeHostedClient(); $hosted_client_count = $this->company->account->hosted_client_count; - if($this->factory_name instanceof ClientFactory && $is_free_hosted_client && (count($data) > $hosted_client_count)) + if($this->factory_name == 'App\Factory\ClientFactory' && $is_free_hosted_client && (count($data) > $hosted_client_count)) { $this->error_array[$entity_type][] = [ $entity_type => 'client',