diff --git a/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx b/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx index 22b0dd16..df8ecde2 100644 --- a/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx +++ b/src/components/floor-plan/modal/circuitTrestle/step/type/PassivityCircuitAllocation.jsx @@ -103,17 +103,6 @@ export default function PassivityCircuitAllocation(props) { surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface }) - if (surfaceList.length > 1) { - if (Object.keys(surfaceType).length > 1) { - swalFire({ - text: getMessage('module.circuit.fix.not.same.roof.error'), - type: 'alert', - icon: 'warning', - }) - return - } - } - if (!circuitNumber || circuitNumber === 0) { swalFire({ text: getMessage('module.circuit.minimun.error'), @@ -145,7 +134,11 @@ export default function PassivityCircuitAllocation(props) { originSurfaceList.concat(originSurfaceList).forEach((surface) => { surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface }) + + break + } + case 'OUTDMULTI': { if (surfaceList.length > 1) { if (Object.keys(surfaceType).length > 1) { swalFire({ @@ -156,10 +149,6 @@ export default function PassivityCircuitAllocation(props) { return } } - - break - } - case 'OUTDMULTI': { if (selectedModels.length > 1) { let result = false