From 447d095113c5a7f7e830d1b40a2cedf28f9b5b9c Mon Sep 17 00:00:00 2001 From: limkhl Date: Mon, 8 Apr 2024 12:52:46 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B4=91=EC=97=AD=EC=8B=9C=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Result.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Result.tsx b/src/components/Result.tsx index 9955aa8..3d2e2c9 100644 --- a/src/components/Result.tsx +++ b/src/components/Result.tsx @@ -3,14 +3,13 @@ import React from 'react'; import client from '@/utils/client' import './result.css' -import { useCandidates } from './Ask'; const Response = ({member}: any) => (

{member.name}

{member.party}

-

{member.region === '비례' ? '비례대표' : member.region.name}

+

{member.city ? `${member.city.name} ${member.region.name}` : '비례대표'}

)