Skip to content

Commit

Permalink
fix crash for some users
Browse files Browse the repository at this point in the history
.at() not widely supported yet
  • Loading branch information
tzarebczan authored Dec 3, 2024
1 parent 2a1a40d commit feb404b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/redux/selectors/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const selectClaimSavedForUrl = createSelector(
(url, bLists, myRLists, uLists, eLists) => {
const collections = [bLists, uLists, eLists, myRLists];
// $FlowFixMe
const claimId = url.match(/[a-f0-9]{40}/)?.at(0);
const claimId = url.match(/[a-f0-9]{40}/)?.[0];

return collections.some((list) =>
// $FlowFixMe
Expand Down

0 comments on commit feb404b

Please sign in to comment.