We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54781f4 commit 278befdCopy full SHA for 278befd
1 file changed
app/meeting/[id]/page.tsx
@@ -174,7 +174,12 @@ export default function Page() {
174
}
175
176
if (typeof window !== 'undefined') {
177
- const calculationType = id ? 'recalculated' : 'first';
+ 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
+
183
const isHost = localStorage.getItem(`is_host_${id}`) === 'true';
184
const userRole = isHost ? 'host' : 'participant';
185
const browserId = localStorage.getItem('browser_id');
0 commit comments