diff --git a/src/hooks/common/useRoofFn.js b/src/hooks/common/useRoofFn.js index 40eb7b2f..84416370 100644 --- a/src/hooks/common/useRoofFn.js +++ b/src/hooks/common/useRoofFn.js @@ -22,8 +22,8 @@ export function useRoofFn() { const ratio = window.devicePixelRatio || 1 const layout = roofMaterial.layout - let width = (roofMaterial.width ?? 226) / 10 - let height = (roofMaterial.length ?? 158) / 10 + let width = (roofMaterial.width || 226) / 10 + let height = (roofMaterial.length || 158) / 10 const index = roofMaterial.index ?? 0 let roofStyle = 2 const inputPatternSize = { width: width, height: height } //임시 사이즈