We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fcb0ef commit 0d510d1Copy full SHA for 0d510d1
src/app/conf/_design-system/anchor.tsx
@@ -28,13 +28,15 @@ export const Anchor = forwardRef(function Anchor(
28
) : (
29
<a
30
ref={ref}
31
- {...(!// we want to show an error if developer doesn't pass a href, but there are cases where it may happen with data from Sched
32
- (props.href as string | undefined)?.startsWith("#")
33
- ? {
34
- rel: "noopener noreferrer",
35
- target: "_blank",
36
- }
37
- : {})}
+ {
+ // we want to show an error if developer doesn't pass a href, but there are cases where it may happen with data from Sched
+ ...(((props.href as string | undefined) || "").startsWith("#")
+ ? {
+ rel: "noopener noreferrer",
+ target: "_blank",
+ }
38
+ : {})
39
40
{...props}
41
/>
42
)
0 commit comments