PostHog last fixes hopefully
This commit is contained in:
17
frontend/pweb/lib/providers/account.dart
Normal file
17
frontend/pweb/lib/providers/account.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:pshared/models/account/account.dart';
|
||||
import 'package:pshared/provider/account.dart';
|
||||
|
||||
import 'package:pweb/services/posthog.dart';
|
||||
|
||||
|
||||
class PwebAccountProvider extends AccountProvider {
|
||||
@override
|
||||
Future<void> onAccountChanged(Account? previous, Account? current) {
|
||||
if (current != null) {
|
||||
return PosthogService.identify(current);
|
||||
}
|
||||
return PosthogService.reset();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user