Skip to content

Commit

Permalink
Fix missing image for background
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmi committed Mar 9, 2024
1 parent 7dd8d38 commit 4254c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gameComponents/boardBackgrounds.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ const backgrounds = [
const style = {
backgroundColor: color,
};
if (img.type) {
if (img?.type) {
const url = media2Url(img);
if (url) {
style.backgroundImage = `url(${url})`;
Expand Down

1 comment on commit 4254c47

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.