Skip to content

Commit

Permalink
πŸ›  fix : ν¬μ¦ˆν”½μ—μ„œ 이전과 같은 데이터 λ°›μ•„μ˜¬ λ•Œ λ¬΄ν•œλ‘œλ”© κ±Έλ¦¬λŠ” 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Apr 16, 2024
1 parent 16a81cd commit 2576e71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/(Main)/pick/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default function Page() {
const [isLottie, setIsLottie] = useState(true);
const { refetch } = usePosePickQuery(countState, {
onSuccess: (data) => {
if (data.poseInfo.imageKey === image) {
setIsRendered(true);
}
setImage(data.poseInfo.imageKey);
},
});
Expand All @@ -41,7 +44,7 @@ export default function Page() {
setState={setCountState}
/>
</div>
<div className="relative flex flex-1">
<div className="relative flex grow">
{(isLottie || !isRendered) && (
<div className="absolute inset-0 z-10 flex w-full justify-center bg-black">
<Lottie animationData={lottiePick} play />
Expand Down

0 comments on commit 2576e71

Please sign in to comment.