From 20abd0dc7c23dba3a4fc63c1a7e2819fe9afd114 Mon Sep 17 00:00:00 2001 From: Keshav Maheshwari <51493190+gmmkmtgk@users.noreply.github.com> Date: Thu, 12 Jan 2023 10:23:19 +0530 Subject: [PATCH] Update ColorRenderer.js Instead of making key as color.hex one should use index as color is not a unique property --- src/01-color-renderer/ColorRenderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/01-color-renderer/ColorRenderer.js b/src/01-color-renderer/ColorRenderer.js index ee9c0e0..8018505 100644 --- a/src/01-color-renderer/ColorRenderer.js +++ b/src/01-color-renderer/ColorRenderer.js @@ -18,11 +18,11 @@ const colors = [{ }] export default function ColorRenderer () { - return colors.map(color => + return colors.map((color, index) => ) }