Update no fog to cut message

This commit is contained in:
Mitchell McCaffrey 2021-06-20 15:32:38 +10:00
parent 675dd2b37c
commit 43d3a4cc02

View File

@ -239,7 +239,7 @@ function MapFog({
const state = cutAction.execute(keyBy(shapes, "id"));
if (Object.keys(state).length === shapes.length) {
onShapeError("No fog found to cut");
onShapeError("No fog to cut");
} else {
onShapesCut(
drawingShapes.map((shape) => ({
@ -409,7 +409,7 @@ function MapFog({
const state = cutAction.execute(keyBy(shapes, "id"));
if (Object.keys(state).length === shapes.length) {
onShapeError("No fog found to cut");
onShapeError("No fog to cut");
} else {
onShapesCut(polygonShapes);
}