Skip to content

Commit

Permalink
Bug Fixed : Default filters on patients page loads (#6189)
Browse files Browse the repository at this point in the history
* URL Bug fixed

* filters issue fixed

* default filters apply on patient page : Bug Fixed

* Update src/Components/Patient/ManagePatients.tsx

Co-authored-by: Rithvik Nishad <[email protected]>

* Update src/Components/Patient/ManagePatients.tsx

Co-authored-by: Rithvik Nishad <[email protected]>

---------

Co-authored-by: Rithvik Nishad <[email protected]>
  • Loading branch information
mustafaazad03 and rithviknishad authored Sep 5, 2023
1 parent 1631e79 commit 9d9bb5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const PatientManager = () => {

if (phone_number === "+91" || phone_number === "") {
setPhoneNumberError("");
updateQuery({ phone_number: "" });
qParams.phone_number && updateQuery({ phone_number: null });
return;
}

Expand All @@ -138,7 +138,8 @@ export const PatientManager = () => {

if (emergency_phone_number === "+91" || emergency_phone_number === "") {
setEmergencyPhoneNumberError("");
updateQuery({ emergency_phone_number: "" });
qParams.emergency_phone_number &&
updateQuery({ emergency_phone_number: null });
return;
}

Expand Down

0 comments on commit 9d9bb5e

Please sign in to comment.