forked from eatvio/eatvio_app
feat(diary): Moderation fields refactored. TEst re now passed
This commit is contained in:
@@ -465,9 +465,10 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
.toList(),
|
||||
);
|
||||
|
||||
if (event.input.length > 3) {
|
||||
updatedState = updatedState.copyWith(
|
||||
moderationExpanded: !currentState.moderationExpanded);
|
||||
if (event.input.length > 2) {
|
||||
updatedState = updatedState.copyWith(moderationExpanded: true);
|
||||
} else {
|
||||
updatedState = updatedState.copyWith(moderationExpanded: false);
|
||||
}
|
||||
|
||||
emit(updatedState); // Emit the updated state
|
||||
|
||||
Reference in New Issue
Block a user