Update no fog to cut message
This commit is contained in:
parent
675dd2b37c
commit
43d3a4cc02
@ -239,7 +239,7 @@ function MapFog({
|
|||||||
const state = cutAction.execute(keyBy(shapes, "id"));
|
const state = cutAction.execute(keyBy(shapes, "id"));
|
||||||
|
|
||||||
if (Object.keys(state).length === shapes.length) {
|
if (Object.keys(state).length === shapes.length) {
|
||||||
onShapeError("No fog found to cut");
|
onShapeError("No fog to cut");
|
||||||
} else {
|
} else {
|
||||||
onShapesCut(
|
onShapesCut(
|
||||||
drawingShapes.map((shape) => ({
|
drawingShapes.map((shape) => ({
|
||||||
@ -409,7 +409,7 @@ function MapFog({
|
|||||||
const state = cutAction.execute(keyBy(shapes, "id"));
|
const state = cutAction.execute(keyBy(shapes, "id"));
|
||||||
|
|
||||||
if (Object.keys(state).length === shapes.length) {
|
if (Object.keys(state).length === shapes.length) {
|
||||||
onShapeError("No fog found to cut");
|
onShapeError("No fog to cut");
|
||||||
} else {
|
} else {
|
||||||
onShapesCut(polygonShapes);
|
onShapesCut(polygonShapes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user