Compare commits

...

2 commits

Author SHA1 Message Date
c2c21d1296
fix: dont output null age 2024-05-07 02:39:06 +02:00
6bd7e157ee
fix: carta editor mobile context menu transparent 2024-05-07 01:20:41 +02:00
2 changed files with 4 additions and 2 deletions

View file

@ -89,7 +89,7 @@
}
.carta-theme__default .carta-icons-menu {
@apply border border-solid border-base-content/30;
@apply border border-solid border-base-content/30 bg-base-100;
padding: 6px;
border-radius: 6px;
min-width: 180px;

View file

@ -102,7 +102,9 @@ export function sanitizeHtml(s: string): string {
}
export function formatPatientName(patient: RouterOutput["patient"]["list"]["items"][0]): string {
return `${patient.first_name} ${patient.last_name} (${patient.age})`;
let res = `${patient.first_name} ${patient.last_name}`;
if (patient.age) res += ` (${patient.age})`;
return res;
}
export function divFloor(a: number, b: number): number {