add auth, format
This commit is contained in:
@@ -38,7 +38,9 @@ class PointsHistory extends _$PointsHistory {
|
||||
Future<void> refresh() async {
|
||||
state = const AsyncValue.loading();
|
||||
state = await AsyncValue.guard(() async {
|
||||
return await ref.read(pointsHistoryLocalDataSourceProvider).getAllEntries();
|
||||
return await ref
|
||||
.read(pointsHistoryLocalDataSourceProvider)
|
||||
.getAllEntries();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user