Skip to content

Commit

Permalink
feat: added mocked Id for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Villarley committed Feb 1, 2025
1 parent 1d8b382 commit de5995a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/app/user/edit-profile/my-profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function EditMyProfile() {
const { t } = useTranslation();
const [image, setImage] = useState<string | null>(null);

const userId = "1"; // Assume you have the logic to get the userId
const userId = "cm2wbxug00000kkm7tvhlujf2"; // Assume you have the logic to get the userId

const { data: user, isLoading } = api.user.getUser.useQuery({
userId,
Expand Down Expand Up @@ -61,6 +61,7 @@ function EditMyProfile() {
void updateProfile({
userId,
name: data.fullName,
email: data.email,
physicalAddress: data.physicalAddress,
});
};
Expand Down

0 comments on commit de5995a

Please sign in to comment.