From 401537d72cd7bf8e6beb50f91e79a15848f81704 Mon Sep 17 00:00:00 2001 From: kaioken Date: Sun, 30 Jun 2024 20:59:42 -0400 Subject: [PATCH] fix : status --- src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php b/src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php index 6486d1e2d..eed8d417f 100644 --- a/src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php +++ b/src/Domains/Connectors/Zoho/Actions/SyncZohoLeadAction.php @@ -63,7 +63,7 @@ public function execute(): ?Lead ->first(); } - $status = strtolower($zohoLead->Lead_Status); + $status = ! empty($zohoLead->Lead_Status) ? strtolower($zohoLead->Lead_Status) : ''; $leadStatus = match (true) { Str::contains($status, 'close') => LeadStatus::getByName('bad'),