We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9493fa4 commit 57f8924Copy full SHA for 57f8924
1 file changed
src/components/SupportUsButton.tsx
@@ -80,6 +80,7 @@ function SupportUsButton({
80
},
81
buttonVariant = "AOSSIE",
82
}: supportUsButtonProps): React.JSX.Element {
83
+ const validatedUrl = validateUrl(organizationInformation?.url);
84
return (
85
// Container for the support us button, with dynamic classes based on the selected theme and custom class names
86
<div
@@ -203,9 +204,10 @@ function SupportUsButton({
203
204
</div>
205
206
{/* Visit Organization Button */}
- {validateUrl(organizationInformation.url) && (
207
+
208
+ {validatedUrl && (
209
<a
- href={validateUrl(organizationInformation.url)}
210
+ href={validatedUrl}
211
target="_blank"
212
rel="noopener noreferrer"
213
title={`Visit ${organizationInformation.name}'s website`}
0 commit comments