diff --git a/components/hackathons/hackathonBanner.tsx b/components/hackathons/hackathonBanner.tsx
index b12b4e377..32d05071b 100644
--- a/components/hackathons/hackathonBanner.tsx
+++ b/components/hackathons/hackathonBanner.tsx
@@ -4,10 +4,11 @@ import { Card } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { formatDate } from '@/lib/utils';
import { useEffect, useState } from 'react';
+import { sanitizeHtml } from '@/lib/utils/renderHtml';
interface HackathonBannerProps {
title: string;
- subtitle?: string;
+ subtitle?: string | React.ReactNode;
imageUrl?: string;
deadline?: string;
startDate?: string;
@@ -244,11 +245,17 @@ export function HackathonBanner({
{title}
- {subtitle && (
-
- {subtitle.slice(3)}
-
+ {subtitle && typeof subtitle === 'string' ? (
+
+ ) : (
+
+ {subtitle}
+
)}
+
{subtitle && (
)}
diff --git a/components/wallet/WalletButton.tsx b/components/wallet/WalletButton.tsx
index 9e68aa430..e81068e9b 100644
--- a/components/wallet/WalletButton.tsx
+++ b/components/wallet/WalletButton.tsx
@@ -115,7 +115,7 @@ export const WalletButton = () => {
return (