Users: Display driver headshot template if user doesn't have avatar

This commit is contained in:
2025-01-30 21:08:59 +01:00
parent 6ebe30e949
commit 2dc170561d
5 changed files with 21 additions and 12 deletions

View File

@ -3,7 +3,7 @@ import type { LayoutServerLoad } from "./$types";
// This "load" function runs serverside only, as it's located inside +layout.server.ts
export const load: LayoutServerLoad = async ({ fetch, locals }) => {
// TODO: Duplicated code from racepicks/+page.server.ts
// TODO: Duplicated code from racepicks/+page.server.ts + users/+page.server.ts
const fetch_graphics = async (): Promise<Graphic[]> => {
const graphics: Graphic[] = await locals.pb
.collection("graphics")