Skip to content

Commit

Permalink
add nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
suit-up-repos committed Feb 27, 2024
1 parent 840e709 commit e6c998c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/Controllers/Analytics/AnalyticsController.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit e6c998c

Please sign in to comment.