diff --git a/actions/editProfile.ts b/actions/editProfile.ts index ac6ee214e..39ab68409 100644 --- a/actions/editProfile.ts +++ b/actions/editProfile.ts @@ -11,6 +11,7 @@ import { editProfileSchema } from "@/components/Forms/Edit/Profile/schema" import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countries" import { getIntl } from "@/i18n" import { phoneValidator } from "@/utils/phoneValidator" +import { getMembership } from "@/utils/user" import { Status } from "@/types/components/myPages/myProfile/edit" @@ -132,7 +133,10 @@ export const editProfile = protectedServerActionProcedure status: Status.success, } } else { - console.log(`[edit profile] body: ${JSON.stringify(body)}`) + const membership = getMembership(profile.memberships) + console.log( + `[edit profile: ${membership?.membershipNumber}] body keys: ${JSON.stringify(Object.keys(body))}` + ) } const apiResponse = await api.patch(api.endpoints.v1.profile, {