Skip to content

Commit

Permalink
feat: change type of id generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DeboraSerra committed Dec 21, 2024
1 parent e84d976 commit a190c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Links/Settings/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Settings = () => {
} else {
setState({
...defaultState,
id: Math.floor(Date.now() * Math.random()).toString(),
id: `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`,
});
}
window.addEventListener("mousedown", handleMouseDown);
Expand Down

0 comments on commit a190c97

Please sign in to comment.