diff --git a/src/utils/colors.ts b/src/utils/colors.ts index 52090ed..daaf7a0 100644 --- a/src/utils/colors.ts +++ b/src/utils/colors.ts @@ -7,7 +7,7 @@ export function colorsFromTheme(theme: string[], itemsToRender: number) { const randomisedColors = shuffleArray(theme); new Array(itemsToRender).fill(0).map((_, index) => { - if (index > randomisedColors.length) { + if (index >= randomisedColors.length) { colorToPushIndex = 0; } else { colorToPushIndex = index;