mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
uses correct error message that the api sends in RemoteCreateCommunityService
.
This commit is contained in:
@ -53,7 +53,7 @@ class RemoteCreateCommunityService implements CreateCommunityService {
|
||||
return _defaultErrorMessage;
|
||||
}
|
||||
final error = body['error'] as Map<String, dynamic>?;
|
||||
final errorMessage = error?['error'] as String? ?? '';
|
||||
final errorMessage = error?['message'] as String? ?? '';
|
||||
return errorMessage;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user