fixed disclaimer not showing on first visit

This commit is contained in:
2024-06-23 20:31:43 +02:00
parent 08ef784f57
commit c443a1d567
5 changed files with 15 additions and 8 deletions

View File

@ -103,10 +103,9 @@ abstract class LoadableHydratedBloc<
Map<String, dynamic>? toJson(LoadableState<TState> state) {
Map<String, dynamic>? data;
try {
data = toStorage(state.data);
data = state.data == null ? null : toStorage(state.data);
} catch(e) {
log('Failed to save state ${TState.toString()}: ${e.toString()}');
data = null;
}
return LoadableSaveContext.wrap(