Skip to content

Commit

Permalink
fix(Body): undefined match
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Mar 1, 2023
1 parent 1eef754 commit 6ffecd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NextCloud/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Body = ({ data }) => {
const SelectedPlayerComponent = allowedPlayersList.reduce(
(acc, currentPlayerName) => {
// eslint-disable-next-line no-unused-expressions
const result = data.url.match(currentPlayerName)
const result = data.url?.match(currentPlayerName)
? allowedPlayers[currentPlayerName]
: acc;
return result;
Expand Down

0 comments on commit 6ffecd6

Please sign in to comment.