Skip to content

Commit 104c82a

Browse files
authored
Merge pull request #478 from appwrite/fix-disable-hackathon-redirect
Fix: Disable hackathon redirect
2 parents b981302 + 845e6df commit 104c82a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/routes/console/+layout.svelte

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { beforeNavigate, goto } from '$app/navigation';
2+
import { beforeNavigate } from '$app/navigation';
33
import { page } from '$app/stores';
44
import { INTERVAL } from '$lib/constants';
55
import { Logs } from '$lib/layout';
@@ -14,21 +14,19 @@
1414
import { onMount } from 'svelte';
1515
import { loading } from '../store';
1616
import Create from './createOrganization.svelte';
17-
import { isCloud } from '$lib/system';
1817
export let data;
1918
2019
onMount(() => {
2120
loading.set(false);
2221
2322
// Check if user already viewed cloud hackathon page
24-
if (isCloud) {
25-
const viewed = localStorage.getItem('cloud-hackathon-viewed');
26-
27-
if (viewed !== data.account.$id) {
28-
localStorage.setItem('cloud-hackathon-viewed', data.account.$id);
29-
goto('/hackathon');
30-
}
31-
}
23+
// if (isCloud) {
24+
// const viewed = localStorage.getItem('cloud-hackathon-viewed');
25+
// if (viewed !== data.account.$id) {
26+
// localStorage.setItem('cloud-hackathon-viewed', data.account.$id);
27+
// goto('/hackathon');
28+
// }
29+
// }
3230
3331
setInterval(() => {
3432
checkForFeedback(INTERVAL);

0 commit comments

Comments
 (0)