Skip to content

Commit

Permalink
[#24] checkbox 에러메세지 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseulhee committed Apr 7, 2024
1 parent 9c73b22 commit 6ba8c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/(route)/indicators/_components/result/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import S from './result.module.css'
//TODO: 사용자가 클릭한 아이디어 이름과 해당 툴을 사용한 사용자 수가 보여집니다.
function Result() {
const selectedItem = useRecoilValue(investmentItemAtom)
const totalinputValue: number = parseInt(useRecoilValue(totalinputValueAtom))
console.log(totalinputValue)
const totalinputValue = parseInt(useRecoilValue(totalinputValueAtom))

return (
<div className={S.wrapper}>
<Nav />
Expand Down
5 changes: 4 additions & 1 deletion app/(route)/indicators/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ function Indicators() {
/>
<ActiveInvestmentList
selectedIndex={selectedIndex}
onSelect={(index: number) => setSelectedIndex(index)}
onSelect={(index: number) => {
setSelectedIndex(index)
setCheckError('')
}}
/>
{checkError && <span className={FormS.error}>{checkError}</span>}
</div>
Expand Down

0 comments on commit 6ba8c84

Please sign in to comment.