diff --git a/lib/Backend/plausible_dio.dart b/lib/Backend/plausible_dio.dart index 0cfec1a1..ce8388d1 100644 --- a/lib/Backend/plausible_dio.dart +++ b/lib/Backend/plausible_dio.dart @@ -25,7 +25,7 @@ class PlausibleDio extends Plausible { /// Post event to plausible @override Future event({String name = "pageview", String referrer = "", String page = "", Map props = const {}}) async { - if (!enabled || HiveProxy.getOrDefault(settings, allowAnalytics, defaultValue: allowAnalyticsDefault)) { + if (!enabled || !HiveProxy.getOrDefault(settings, allowAnalytics, defaultValue: allowAnalyticsDefault)) { return 0; } final transaction = Sentry.startTransaction('Plausible Event', 'http');