diff --git a/src/Components/Charts/Utils.js b/src/Components/Charts/Utils.js index df68b7d..703809e 100644 --- a/src/Components/Charts/Utils.js +++ b/src/Components/Charts/Utils.js @@ -142,7 +142,7 @@ function handleRating(array, submission) { } if (array.length !== submission.stars + 1) { - for (let i = 0; i <= submission.stars; i++) { + for (let i = 1; i <= submission.stars; i++) { if (!array.find((a) => a.label == i)) { array.push({ label: i, value: 0 }); } diff --git a/src/Components/ColorPicker/index.jsx b/src/Components/ColorPicker/index.jsx index 9770cc9..e058643 100644 --- a/src/Components/ColorPicker/index.jsx +++ b/src/Components/ColorPicker/index.jsx @@ -108,6 +108,7 @@ function Picker({ color, onColorChange }) { const PickerDiv = styled.div` position: absolute; +z-index: 10; `; const AddButton = styled.div` @@ -130,6 +131,7 @@ color: #fff; border-radius: 10%; font-size: 20px; text-align: center; + `; const FlexWrapper = styled.div`