Skip to content

Commit

Permalink
bug fix number 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAntonS committed Jul 10, 2023
1 parent 3c04df6 commit e82e9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/community/pages/create_post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ class _CreatePostPageState extends State<CreatePostPage> {
if (state.status == ImageStatus.success && image != state.imageUrl) {
setState(() => image = state.imageUrl!);
}
if (state.status == ImageStatus.uploading) {
if (state.status == ImageStatus.uploading && image == '') {
setState (() => image = 'loading');
}
if (state.status == ImageStatus.failure) {
setState(() {
error = true;
image = '';
if (image == 'loading') image = '';
});
}
if (state.status == ImageStatus.deleting) {
Expand Down

0 comments on commit e82e9aa

Please sign in to comment.