register update
This commit is contained in:
@@ -86,13 +86,11 @@ export default function EditService() {
|
||||
const { mutate, isPending } = useMutation({
|
||||
mutationFn: (body: FormData) => user_api.update_service({ body, id: Number(id) }),
|
||||
onSuccess: (res) => {
|
||||
console.log(res);
|
||||
queryClient.invalidateQueries({ queryKey: ['my_services'] });
|
||||
queryClient.invalidateQueries({ queryKey: ['service_detail'] });
|
||||
router.back();
|
||||
},
|
||||
onError: (err: any) => {
|
||||
console.log(err);
|
||||
Alert.alert(t('Xatolik yuz berdi'), err?.message || t('Yangilashda xato yuz berdi'));
|
||||
},
|
||||
});
|
||||
|
||||
@@ -80,7 +80,6 @@ export function ReferralsTab() {
|
||||
title: t('Referal linkni ulashish'),
|
||||
});
|
||||
} catch (err) {
|
||||
console.log('Share error:', err);
|
||||
}
|
||||
|
||||
if (Platform.OS === 'android') {
|
||||
|
||||
Reference in New Issue
Block a user