bug fix
This commit is contained in:
@@ -4,7 +4,7 @@ import type {
|
||||
} from "@/pages/support/lib/types";
|
||||
import httpClient from "@/shared/config/api/httpClient";
|
||||
import {
|
||||
GET_ALL_AGENCY,
|
||||
APPROVED_AGENCY,
|
||||
SUPPORT_AGENCY,
|
||||
SUPPORT_USER,
|
||||
TOUR_ADMIN,
|
||||
@@ -87,7 +87,7 @@ const updateTour = async ({
|
||||
status: "pending" | "approved" | "cancelled";
|
||||
};
|
||||
}) => {
|
||||
const res = await httpClient.patch(`${GET_ALL_AGENCY}${id}/`, body);
|
||||
const res = await httpClient.patch(`${APPROVED_AGENCY}${id}/`, body);
|
||||
return res;
|
||||
};
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ const SupportAgency = () => {
|
||||
|
||||
<div>
|
||||
<div className="text-md text-white">{t("Telefon raqam")}</div>
|
||||
<div>{formatPhone(selected.phone)}</div>
|
||||
<div>{formatPhone(selected.phone ?? "")}</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -321,7 +321,7 @@ const SupportAgency = () => {
|
||||
{t("Telefon raqam (login)")}
|
||||
</p>
|
||||
<p className="text-lg font-medium">
|
||||
{formatPhone(user.data.phone)}
|
||||
{formatPhone(user.data.phone ?? "")}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user