+1
-1
compose.yaml
+1
-1
compose.yaml
+6
-5
landing/src/pds/pds.ts
+6
-5
landing/src/pds/pds.ts
···
21
21
)
22
22
.then((res) => res.json())
23
23
.then((res) => didDocSchema.safeParse(res).data)
24
-
.then(
25
-
(doc) =>
26
-
doc.alsoKnownAs
27
-
.filter((x) => x.startsWith("at://"))[0]
28
-
?.replace("at://", "") ?? "handle.invalid"
24
+
.then((doc) =>
25
+
doc
26
+
? (doc.alsoKnownAs
27
+
.filter((x) => x.startsWith("at://"))[0]
28
+
?.replace("at://", "") ?? "handle.invalid")
29
+
: "handle.invalid"
29
30
)
30
31
.catch(() => "handle.invalid");
31
32