Skip to content

Commit

Permalink
fix: try / catch
Browse files Browse the repository at this point in the history
  • Loading branch information
psykzz authored Oct 1, 2024
1 parent 40a7cc0 commit 4e2d29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UserList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const UserList = ({ me, users, scores }) => {
try {
// Try to sort by score as well.
users?.sort((a,b) => (scoreByUser?.[a.id] ?? 0) > (scoreByUser?.[b.id] ?? 0));
catch (e) { console.error(e); }
} catch (e) { console.error(e); }
const resetName = () => {
if (typeof window === 'undefined') {
return;
Expand Down

0 comments on commit 4e2d29c

Please sign in to comment.