Skip to content

Commit

Permalink
removing unnecessary console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavik-ag committed Feb 19, 2024
1 parent b4c7708 commit 7b8c4e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,15 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
const intialSubscriptionState = async () => {
try {
const res = await request(routes.getUserPnconfig, {
pathParams: { username: username },
pathParams: { username },
});
const reg = await navigator.serviceWorker.ready;
const subscription = await reg.pushManager.getSubscription();
if (!subscription && !res.data?.pf_endpoint) {
console.log("No subscription and no endpoint");
Notification.Warn({
msg: "Please subscribe to notifications to get live updates on doctor notes.",
});
} else if (subscription?.endpoint !== res.data?.pf_endpoint) {
console.log("Subscription and endpoint match");
Notification.Warn({
msg: "Please subscribe to notifications on this device to get live updates on doctor notes.",
});
Expand Down

0 comments on commit 7b8c4e4

Please sign in to comment.