From 18201fc7cad9905c6ac6a67effdb9ad6c8e65249 Mon Sep 17 00:00:00 2001 From: Akash Date: Sat, 17 Aug 2024 00:20:04 +0530 Subject: [PATCH] Fixed flickering-grid err Signed-off-by: Akash --- components/magicui/flickering-grid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/magicui/flickering-grid.tsx b/components/magicui/flickering-grid.tsx index 4ef6845..9df6fec 100644 --- a/components/magicui/flickering-grid.tsx +++ b/components/magicui/flickering-grid.tsx @@ -43,7 +43,7 @@ const FlickeringGrid: React.FC = ({ if (!ctx) return "rgba(255, 0, 0,"; ctx.fillStyle = color; ctx.fillRect(0, 0, 1, 1); - const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data; + const [r, g, b] = Array.from(ctx.getImageData(0, 0, 1, 1).data); return `rgba(${r}, ${g}, ${b},`; }; return toRGBA(color);