Skip to content

Commit 8677b91

Browse files
committed
fix : 5. 중간지점 조회 데이터 값 문제 수정
1 parent 54781f4 commit 8677b91

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/meeting/[id]/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ export default function Page() {
174174
}
175175

176176
if (typeof window !== 'undefined') {
177-
const calculationType = id ? 'recalculated' : 'first';
177+
const alreadyCalculated = localStorage.getItem(`midpoint_calculated_${id}`) === '1';
178+
const calculationType = alreadyCalculated ? 'recalculated' : 'first';
179+
if (!alreadyCalculated) {
180+
localStorage.setItem(`midpoint_calculated_${id}`, '1');
181+
}
182+
178183
const isHost = localStorage.getItem(`is_host_${id}`) === 'true';
179184
const userRole = isHost ? 'host' : 'participant';
180185
const browserId = localStorage.getItem('browser_id');

0 commit comments

Comments
 (0)