fix: add default robohash image path

This commit is contained in:
Kieran 2023-10-17 22:32:06 +01:00
parent 9b3cc94d18
commit d50979b8ae
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -468,8 +468,8 @@ export function kvToObject<T>(o: string, sep?: string) {
) as T;
}
export function defaultAvatar(input: string) {
return `https://robohash.v0l.io/${input}.png${IsHalloween() ? "?set=set2" : ""}`;
export function defaultAvatar(input?: string) {
return `https://robohash.v0l.io/${input ?? "missing"}.png${IsHalloween() ? "?set=set2" : ""}`;
}
export function isFormElement(target: HTMLElement): boolean {