Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): disambiguate testimonial keys when urls collide

Richie McIlroya1c277c431f1
diff --git a/apps/web/components/ui/Testimonials.tsx b/apps/web/components/ui/Testimonials.tsx
index 32279c302..e0bea136d 100644
--- a/apps/web/components/ui/Testimonials.tsx
+++ b/apps/web/components/ui/Testimonials.tsx
@@ -49,7 +49,7 @@ export const Testimonials = ({
<div className="gap-3 mt-8 space-y-3 columns-1 md:columns-2 lg:columns-3">
{displayedTestimonials.map((testimonial) => (
<motion.div
- key={testimonial.url}
+ key={`${testimonial.name}:${testimonial.url}`}
className="mb-3 break-inside-avoid"
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}