Skip to content

Commit

Permalink
fix(ShiningDiv): refactoring toSpliced to splice since it's a relativ…
Browse files Browse the repository at this point in the history
…ely new feature not supported by some browsers
  • Loading branch information
Truiteseche committed Jan 5, 2024
1 parent 4fc648b commit c59c0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/generic/CustomDivs/ShiningDiv.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ShiningDiv = forwardRef(function ShiningDiv({ children, shiningIconsList,

setShiningElements((oldShiningElements) => oldShiningElements.concat(newElement));
setTimeout(() => {
setShiningElements((oldShiningElements) => oldShiningElements.toSpliced(oldShiningElements.indexOf(newElement), 1));
setShiningElements((oldShiningElements) => {oldShiningElements.splice(oldShiningElements.indexOf(newElement), 1); return oldShiningElements});
}, growDuration);
}

Expand Down

0 comments on commit c59c0ae

Please sign in to comment.