diff --git a/src/components/Cell/Cell.tsx b/src/components/Cell/Cell.tsx index 3baeb64..eb87772 100644 --- a/src/components/Cell/Cell.tsx +++ b/src/components/Cell/Cell.tsx @@ -30,7 +30,7 @@ export const Cell = ({ } function backgroundColor() { if (cell.conflict === true && hasPentomino === true) return { class: "bg-red-700", style: "" }; - if (cell.pentomino.pentomino === PENTOMINOES.R) return { class: "bg-gray-600", style: "" }; + if (cell.pentomino.pentomino.name === PENTOMINOES.R.name) return { class: "bg-gray-600", style: "" }; if (hasPentomino === true) return { class: "", style: displayColors[pentominoColors[cell.pentomino.pentomino.name]] }; return { class: "bg-gray-400 dark:bg-gray-800", style: "" }; diff --git a/src/components/GameStateProvider/urlConfig.ts b/src/components/GameStateProvider/urlConfig.ts index 48abf41..0276482 100644 --- a/src/components/GameStateProvider/urlConfig.ts +++ b/src/components/GameStateProvider/urlConfig.ts @@ -464,7 +464,7 @@ export function deserializeUrl(s: string): UrlConfig { x: x, y: y, }; - ret.colors[p.p.toUpperCase()] = decodeColor(r.color, p.p, legacy); + if (p.p.toUpperCase() !== PENTOMINOES.R.name) ret.colors[p.p.toUpperCase()] = decodeColor(r.color, p.p, legacy); }); return ret; }