fixed disclaimer not showing on first visit
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user