feature/survey #56

Merged
swyoo merged 24 commits from feature/survey into dev 2025-06-04 16:31:01 +09:00
Showing only changes of commit 9b7c32ac04 - Show all commits

View File

@ -18,13 +18,13 @@ export default function SurveySaleDownloadPdf() {
const isGeneratedRef = useRef(false)
useEffect(() => {
setIsShow(true)
if (isLoadingSurveyDetail || !surveyDetail || isGeneratedRef.current) return
isGeneratedRef.current = true
handleDownPdf()
}, [surveyDetail?.id, isLoadingSurveyDetail])
const handleDownPdf = () => {
setIsShow(true)
const options = {
method: 'open' as const,
resolution: Resolution.HIGH,
@ -330,7 +330,11 @@ export default function SurveySaleDownloadPdf() {
boxSizing: 'border-box',
}}
>
{surveyDetail?.detailInfo?.constructionYear === '1' ? '新築' : `既築 (${surveyDetail?.detailInfo?.constructionYear}年)`}
{surveyDetail?.detailInfo?.constructionYear === '1'
? '新築'
: surveyDetail?.detailInfo?.constructionYearEtc
? `既築 (${surveyDetail?.detailInfo?.constructionYear}年)`
: '-'}
</td>
<th
style={{