Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Removed url && in the link prop

Aadhar Chandiwalade53d8dfe76f
diff --git a/client/templates/Castform/widgets/Section.tsx b/client/templates/Castform/widgets/Section.tsx
index da721a6b4..3d8a524d6 100644
--- a/client/templates/Castform/widgets/Section.tsx
+++ b/client/templates/Castform/widgets/Section.tsx
@@ -86,7 +86,7 @@ const Section: React.FC<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url && addHttp(url)}>
+ <DataDisplay icon={<Link />} link={addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Gengar/widgets/Section.tsx b/client/templates/Gengar/widgets/Section.tsx
index 80aafa3dd..6d74ed4ba 100644
--- a/client/templates/Gengar/widgets/Section.tsx
+++ b/client/templates/Gengar/widgets/Section.tsx
@@ -87,7 +87,7 @@ const Section: React.FC<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url && addHttp(url)}>
+ <DataDisplay icon={<Link />} link={addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Glalie/widgets/Section.tsx b/client/templates/Glalie/widgets/Section.tsx
index 536079fca..3365dfdf3 100644
--- a/client/templates/Glalie/widgets/Section.tsx
+++ b/client/templates/Glalie/widgets/Section.tsx
@@ -80,7 +80,7 @@ const Section: React.FC<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url && addHttp(url)}>
+ <DataDisplay icon={<Link />} link={addHttp(url)}>
{url}
</DataDisplay>
)}
diff --git a/client/templates/Kakuna/widgets/Section.tsx b/client/templates/Kakuna/widgets/Section.tsx
index 032ff65e0..d0ebc363c 100644
--- a/client/templates/Kakuna/widgets/Section.tsx
+++ b/client/templates/Kakuna/widgets/Section.tsx
@@ -84,7 +84,7 @@ const Section: React.FC<SectionProps> = ({
{url && (
<div className="inline-flex justify-center">
- <a href={url && addHttp(url)} target="_blank" rel="noreferrer">
+ <a href={addHttp(url)} target="_blank" rel="noreferrer">
{url}
</a>
</div>
diff --git a/client/templates/Onyx/widgets/Section.tsx b/client/templates/Onyx/widgets/Section.tsx
index 2603cc37c..00472af10 100644
--- a/client/templates/Onyx/widgets/Section.tsx
+++ b/client/templates/Onyx/widgets/Section.tsx
@@ -87,7 +87,7 @@ const Section: React.FC<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url && addHttp(url)} className="text-xs">
+ <DataDisplay icon={<Link />} link={addHttp(url)} className="text-xs">
{url}
</DataDisplay>
)}
diff --git a/client/templates/Pikachu/widgets/Section.tsx b/client/templates/Pikachu/widgets/Section.tsx
index bba628493..33e785f9b 100644
--- a/client/templates/Pikachu/widgets/Section.tsx
+++ b/client/templates/Pikachu/widgets/Section.tsx
@@ -79,7 +79,7 @@ const Section: React.FC<SectionProps> = ({
{summary && <Markdown>{summary}</Markdown>}
{url && (
- <DataDisplay icon={<Link />} link={url && addHttp(url)}>
+ <DataDisplay icon={<Link />} link={addHttp(url)}>
{url}
</DataDisplay>
)}