cicd
Some checks failed
Build and Release / release (push) Failing after 38s

This commit is contained in:
2026-04-19 19:45:58 +07:00
parent 7cff844e5b
commit fd37d95699
11 changed files with 115 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ import Button from "../ui/button/Button";
import Input from "../form/input/InputField";
import Label from "../form/Label";
import { Profile, UserMetaCardProps } from "@/interface/user";
import { apiUpdateUser, apiUpdateUserCurrent } from "@/service/userService";
import { apiUpdateUser } from "@/service/userService";
import { toast } from "sonner";
import Link from "next/link";
@@ -51,7 +51,7 @@ export default function UserInfoCard({ data }: { data: UserMetaCardProps }) {
if (!userId) return;
try {
const response = await apiUpdateUserCurrent(formData);
const response = await apiUpdateUser(formData);
if (response && response.status === false) {
toast.error(response.message || "Cập nhật thất bại.");