Skip to content

Commit

Permalink
feat(expo/payment-confirm): invaldate query
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Nov 30, 2023
1 parent d4b9728 commit db7693e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/expo/src/app/(app)/payment-confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function PaymentConfirmScreen() {

const { image, onSelectImage, onUpload, uploadProggres } = useSelectImage();

const utils = api.useUtils();
const { mutate, isPending } = api.order.confirmPayment.useMutation();
const methods = useForm<z.infer<typeof schema>>({
resolver: zodResolver(schema),
Expand All @@ -59,6 +60,7 @@ export default function PaymentConfirmScreen() {
},
{
onSettled: () => {
void utils.order.showOrder.invalidate();
router.back();
},
},
Expand Down

0 comments on commit db7693e

Please sign in to comment.