uses correct error message that the api sends in RemoteCreateCommunityService.

This commit is contained in:
Faris Armoush
2025-06-23 10:11:03 +03:00
parent 7d4cdba0ef
commit f8e4c89cdb

View File

@ -53,7 +53,7 @@ class RemoteCreateCommunityService implements CreateCommunityService {
return _defaultErrorMessage; return _defaultErrorMessage;
} }
final error = body['error'] as Map<String, dynamic>?; final error = body['error'] as Map<String, dynamic>?;
final errorMessage = error?['error'] as String? ?? ''; final errorMessage = error?['message'] as String? ?? '';
return errorMessage; return errorMessage;
} }