refactor: remove console logs for token refresh and user profile requests in SubmitData and AppointmentPage components
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user