ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
255 stars 441 forks source link

Min,Max condition in discharge from care pop-up is not allowing user to swap calendar months #9101

Closed nihal467 closed 1 week ago

nihal467 commented 1 week ago

Describe the bug

The calendar in the "Discharge from Care" pop-up does not allow users to navigate to previous months within the range of the patient's admission date to the current date.

To Reproduce Steps to reproduce the behavior:

  1. Go to the patient tab.
  2. Click on any patient card with an active live consultation.
  3. Select "Manage Patient" and choose the "Discharge from Care" option from the dropdown menu.
  4. Try to change the calendar to a previous month and observe the issue.

Expected behavior

Screenshots

Image

github-actions[bot] commented 1 week ago

:warning: Refrain from assigning this issue to yourself if you have another P1 issue assigned that is not yet closed.

AdityaJ2305 commented 1 week ago

Hey @nihal467 , Let me check if I can solve this issue

AdityaJ2305 commented 1 week ago

@nihal467 I checked for a patient admitted on 10th October, and it’s allowing me to switch to October month. Could you clarify if I’m misunderstanding this issue?

https://github.com/user-attachments/assets/5e32b453-5562-4784-ba42-8bcd7bf836a1

nihal467 commented 1 week ago

@AdityaJ2305 seem like your develop is out of sync, check in care.ohc.network or update your local develop

AdityaJ2305 commented 1 week ago

@AdityaJ2305 seem like your develop is out of sync, check in care.ohc.network or update your local develop

No, It’s up to date. I also double-checked with the original repo, and everything looks synced.

Alokih commented 1 week ago

@AdityaJ2305 seem like your develop is out of sync, check in care.ohc.network or update your local develop

I think he is correct nihal sir, because even in care.ohc.network also it looks fine to me

nihal467 commented 1 week ago

issue seems to be resolved