Skip to content

fix(healthlogscreen): petid 하드코딩 제거#54

Merged
onohesey merged 3 commits into
devfrom
fix/healthlogscreen
Jun 3, 2026
Merged

fix(healthlogscreen): petid 하드코딩 제거#54
onohesey merged 3 commits into
devfrom
fix/healthlogscreen

Conversation

@onohesey

@onohesey onohesey commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

작업내용

  • const CURRENT_PET_ID = 1 제거
  • const petId = Number(localStorage.getItem('hyfive_petId')) 로 교체 (다른 API 모듈과 동일한 패턴)
  • listHealthRecords 호출과 handleSave body 모두 petId 사용
  • 첫 번째 useEffect 의존성 배열에 petId 추가

@onohesey onohesey merged commit 8ee064c into dev Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant