🐛 Fix generation with less bombs than expected & wrong placed numbers

This commit is contained in:
2024-02-18 19:05:58 +01:00
parent dce5862d36
commit 21d5f64c06
2 changed files with 20 additions and 32 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import { useActions } from './hooks/useActions';
// ---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------ Utils --------------------------------------------------------
import { genGrid, getCellContent } from '../../utils/game';
import { genGrid, getCellDisplayContent } from '../../utils/game';
// ---------------------------------------------------------------------------------------------------------------------
// ----------------------------------------------------- Assets --------------------------------------------------------
@@ -53,7 +53,7 @@ const Grid = () => {
onClick={(ev) => handleLeftClick(ev, rowIndex, cellIndex)}
onContextMenu={(ev) => handleRightClick(ev, rowIndex, cellIndex)}
>
{getCellContent(cell)}
{getCellDisplayContent(cell)}
</button>
);
})}