checkEmail

This commit is contained in:
mohammad
2024-12-29 11:22:45 +03:00
parent 8f7b46be25
commit 9e5cbc285e

View File

@ -76,8 +76,6 @@ class UserPermissionApi {
} }
} }
Future<String?> checkEmail(String email) async { Future<String?> checkEmail(String email) async {
try { try {
final response = await _httpService.post( final response = await _httpService.post(
@ -99,7 +97,6 @@ class UserPermissionApi {
return response ?? 'Unknown error occurred'; return response ?? 'Unknown error occurred';
} on DioException catch (e) { } on DioException catch (e) {
if (e.response != null) { if (e.response != null) {
print(e.response?.data['error']);
final errorMessage = e.response?.data['error']; final errorMessage = e.response?.data['error'];
return errorMessage is String return errorMessage is String
? errorMessage ? errorMessage