small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:05:40 +02:00
parent 7b7ed0083f
commit 5ab2773f98
55 changed files with 3240 additions and 483 deletions
@@ -5,7 +5,11 @@ import '../../../bootstrap/supabase_client.dart';
import '../../auth/application/auth_controller.dart';
final userRepositoryProvider = Provider<UserRepository>((ref) {
return UserRepository(supabaseClient);
final client = supabaseClient;
if (client == null) {
throw Exception('Supabase not initialized - user repository unavailable');
}
return UserRepository(client);
});
final notificationsRepositoryProvider = Provider<NotificationsRepository>((ref) {