From 4072b81164b83f0c011d80d040839bb05a1fbd23 Mon Sep 17 00:00:00 2001 From: Sofie Johansen Date: Wed, 26 Jun 2024 09:26:13 +0200 Subject: [PATCH] Fixed text for patients without encounters and appointments --- src/pages/appointments/[id].tsx | 12 ++++++++---- src/styles/appointment.module.scss | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/pages/appointments/[id].tsx b/src/pages/appointments/[id].tsx index f0da0d0..735cbd1 100644 --- a/src/pages/appointments/[id].tsx +++ b/src/pages/appointments/[id].tsx @@ -81,6 +81,8 @@ if (!patient) { ); } +// console.log(appointments?.total) + if(patient && appointments && encounters){ return ( @@ -112,7 +114,7 @@ if(patient && appointments && encounters){ @@ -137,7 +140,7 @@ if(patient && appointments && encounters){ diff --git a/src/styles/appointment.module.scss b/src/styles/appointment.module.scss index 830dbe4..7478497 100644 --- a/src/styles/appointment.module.scss +++ b/src/styles/appointment.module.scss @@ -8,7 +8,7 @@ .appointmentList, .encounterList { list-style-type: none; padding: 0; - height: calc(90vh - 100pt); + height: calc(80vh - 100pt); overflow-y: auto; }