refactor: remove console logs for token refresh and user profile requests in SubmitData and AppointmentPage components

This commit is contained in:
hamed
2025-11-18 15:39:45 +03:30
parent 5c98b4de3e
commit 2894da3c69
2 changed files with 1 additions and 13 deletions
-5
View File
@@ -52,13 +52,9 @@ function AppointmentPage({ doctor, disabledDates, matchedCity }) {
// سپس اگر uuid داریم، بقیه اطلاعات را از API می‌گیریم
if (userInfo && parsedData) {
try {
console.log('📤 درخواست دریافت پروفایل کاربر - UUID:', parsedData.uuid);
const res = await request.getUserProfile(parsedData.uuid);
console.log('📥 پاسخ دریافتی از API:', res);
if (res) {
console.log('🏥 basic_insurance از API:', res.basic_insurance);
console.log('🏥 supplementary_insurance از API:', res.supplementary_insurance);
const newData = {
uuid: res.uuid,
phone: { value: usernameFromCookie, isEdit: false },
@@ -120,7 +116,6 @@ function AppointmentPage({ doctor, disabledDates, matchedCity }) {
if (userInfo && parsedData && !data.uuid) {
try {
console.log('📤 درخواست مجدد دریافت پروفایل (step 3) - UUID:', parsedData.uuid);
const res = await request.getUserProfile(parsedData.uuid);
if (res) {