From e6c998c34bb03ca97918b61b797201c46cdbaf8b Mon Sep 17 00:00:00 2001 From: uwongke Date: Tue, 27 Feb 2024 14:23:07 -0800 Subject: [PATCH] add nil check --- src/Client/Controllers/Analytics/AnalyticsController.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/Controllers/Analytics/AnalyticsController.lua b/src/Client/Controllers/Analytics/AnalyticsController.lua index f480607..729955b 100644 --- a/src/Client/Controllers/Analytics/AnalyticsController.lua +++ b/src/Client/Controllers/Analytics/AnalyticsController.lua @@ -49,7 +49,7 @@ function AnalyticsController:KnitStart() local timeout: number = 10 local teleportData: StringValue? = ReplicatedFirst:WaitForChild("teleportData", timeout) - playerTeleportedToGame = teleportData and (teleportData.Value == "no data" or #teleportData.Value == 0) + playerTeleportedToGame = teleportData ~= nil and (teleportData.Value == "no data" or #teleportData.Value == 0) if playerTeleportedToGame then self.AnalyticsService.LogEvent:Fire({