Skip to content

Commit ec7bd4c

Browse files
Merge pull request #4 from chazchazchaz/main
Update isUnique logic
2 parents f21177f + 52b58ad commit ec7bd4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SimpleAnalytics/SimpleAnalytics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ final public class SimpleAnalytics: NSObject {
123123
} else {
124124
// Last visit is not in today, so unique.
125125
self.visitDate = Date()
126-
UserDefaults.standard.set(visitDate, forKey: Keys.visitDateKey)
126+
UserDefaults.standard.set(self.visitDate, forKey: Keys.visitDateKey)
127127
return true
128128
}
129129
} else {

0 commit comments

Comments
 (0)