fix transaction page

This commit is contained in:
Parsa Nazer
2025-11-20 14:59:11 +03:30
parent a6c30b6890
commit fd6aad8be5
@@ -1,20 +1,18 @@
// imports
import { useQuery } from "@tanstack/vue-query";
import { useAppParams } from "~/composables/global/useAppParams";
import { API_ENDPOINTS, QUERY_KEYS } from "~/constants";
import type { ComputedRef } from "vue";
// types
export type GetTransactionResponse = Transaction;
const useGetTransaction = () => {
const useGetTransaction = (tracking_code: ComputedRef<string>) => {
// state
const { $axios: axios } = useNuxtApp();
const { tracking_code } = useAppParams();
// methods
const handleGetTransaction = async () => {