correct issues
This commit is contained in:
@@ -161,13 +161,13 @@ const Profile = () => {
|
||||
// Alert.alert("Success", "Profile updated successfully");
|
||||
// setEditing(false);
|
||||
// fetchUserProfile();
|
||||
// if (result.status === "success") {
|
||||
// Alert.alert("Success", "Profile updated successfully");
|
||||
// setEditing(false);
|
||||
// fetchUserProfile(); // reload updated data
|
||||
// } else {
|
||||
// Alert.alert("Error", "Failed to update profile");
|
||||
// }
|
||||
if (result.status === "success") {
|
||||
Alert.alert("Success", "Profile updated successfully");
|
||||
setEditing(false);
|
||||
fetchUserProfile(); // reload updated data
|
||||
} else {
|
||||
Alert.alert("Error", "Failed to update profile");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("❌ Error updating profile:", error);
|
||||
// Alert.alert("Error", "Could not update profile");
|
||||
@@ -309,7 +309,7 @@ const Profile = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
await deleteFcmToken();
|
||||
await deleteFcmToken(user?.userId?.toString());
|
||||
|
||||
// Clear stored credentials
|
||||
await Keychain.resetGenericPassword();
|
||||
@@ -463,11 +463,6 @@ const Profile = () => {
|
||||
<View>
|
||||
<Text style={styles.sectionTitle}>Personal Information</Text>
|
||||
<Text style={{ color: "#64748b", marginBottom: 16 }}>Become Organizer</Text>
|
||||
{/* <View style={{ marginBottom: 16 }}>
|
||||
|
||||
|
||||
|
||||
</View> */}
|
||||
</View>
|
||||
<View>
|
||||
<TouchableOpacity onPress={() => navigation.navigate('Transaction')}>
|
||||
|
||||
Reference in New Issue
Block a user