surveysparrow-ionic-plugin 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,10 +65,10 @@ public class SurveySparrow: SsSurveyDelegate {
65
65
  if promptTime == 0 {
66
66
  let nextPrompt = currentTime + startAfter
67
67
  UserDefaults.standard.set(nextPrompt, forKey: promptTimeKey)
68
- dataStore.set(1, forKey: incrementMultiplierKey)
68
+ dataStore.set(Int64(1), forKey: incrementMultiplierKey)
69
69
  return
70
70
  }
71
- if self.domain != nil && self.token != nil {
71
+ if !domain.isEmpty && !token.isEmpty {
72
72
  if isConnectedToNetwork && (!isAlreadyTaken || repeatSurvey) && (promptTime < currentTime) {
73
73
  var isActive: Bool = false
74
74
  var reason: String = ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surveysparrow-ionic-plugin",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "SurveySparrow SDK enables you to collect feedback from your mobile app. Embed the Classic, Chat & NPS surveys in your ionic application seamlessly with few lines of code.",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.cjs.js",