This commit is contained in:
Abin Toppo
2025-10-01 15:48:33 +05:30
15 changed files with 349 additions and 49 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ const BecomeOrg = () => {
}
} catch (error) {
console.error("❌ Registration error:", error);
Alert.alert("Error", "An unexpected error occurred. Please try again.");
// Alert.alert("Error", "An unexpected error occurred. Please try again.");
} finally {
setLoading(false);
}
+1 -1
View File
@@ -59,7 +59,7 @@ const EditBankDetails = () => {
}
} catch (error: any) {
console.error("Error updating bank details:", error);
Alert.alert("Error", error.message || "An unexpected error occurred. Please try again.");
// Alert.alert("Error", error.message || "An unexpected error occurred. Please try again.");
} finally {
setLoading(false);
}
+4 -4
View File
@@ -116,7 +116,7 @@ const Profile = () => {
}
} catch (error) {
console.error("❌ Error fetching profile:", error);
Alert.alert("Error", "Could not connect to server");
// Alert.alert("Error", "Could not connect to server");
} finally {
setFetching(false);
}
@@ -164,7 +164,7 @@ const Profile = () => {
}
} catch (error) {
console.error("❌ Error updating profile:", error);
Alert.alert("Error", "Could not update profile");
// Alert.alert("Error", "Could not update profile");
}
};
@@ -245,7 +245,7 @@ const Profile = () => {
}
} catch (error) {
console.error("❌ Error updating profile image:", error);
Alert.alert("Error", "Could not update profile image");
// Alert.alert("Error", "Could not update profile image");
} finally {
setImageUpdating(false);
}
@@ -311,7 +311,7 @@ const Profile = () => {
navigation.replace("Login");
} catch (error) {
console.error("Logout error:", error);
Alert.alert("Error", "Failed to log out. Please try again.");
// Alert.alert("Error", "Failed to log out. Please try again.");
}
};