Skip to content

Commit

Permalink
πŸ”§ fix: μ’…λͺ© κ°„ λ””ν…ŒμΌ νŽ˜μ΄μ§€ μ΄λ™μ‹œ 헀더 λΆ€λΆ„ 데이터 λ³€κ²½λ˜μ§€ μ•ŠλŠ” 문제 ν•΄κ²°
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Nov 28, 2024
1 parent 138f2bc commit a68295f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FE/src/components/StocksDetail/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default function Header({ code, data }: StocksDetailHeaderProps) {
// }
// }, [code, debounceValue]);

useEffect(() => {
setCurrPrice(stck_prpr);
}, [stck_prpr]);

useEffect(() => {
const handleSocketData = (data: {
stck_prpr: string;
Expand Down

0 comments on commit a68295f

Please sign in to comment.