mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #478 from appwrite/fix-disable-hackathon-redirect
Fix: Disable hackathon redirect
This commit is contained in:
1 file changed
+8
-10
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { beforeNavigate, goto } from '$app/navigation';
|
||||
import { beforeNavigate } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
import { INTERVAL } from '$lib/constants';
|
||||
import { Logs } from '$lib/layout';
|
||||
@@ -14,21 +14,19 @@
|
||||
import { onMount } from 'svelte';
|
||||
import { loading } from '../store';
|
||||
import Create from './createOrganization.svelte';
|
||||
import { isCloud } from '$lib/system';
|
||||
export let data;
|
||||
|
||||
onMount(() => {
|
||||
loading.set(false);
|
||||
|
||||
// Check if user already viewed cloud hackathon page
|
||||
if (isCloud) {
|
||||
const viewed = localStorage.getItem('cloud-hackathon-viewed');
|
||||
|
||||
if (viewed !== data.account.$id) {
|
||||
localStorage.setItem('cloud-hackathon-viewed', data.account.$id);
|
||||
goto('/hackathon');
|
||||
}
|
||||
}
|
||||
// if (isCloud) {
|
||||
// const viewed = localStorage.getItem('cloud-hackathon-viewed');
|
||||
// if (viewed !== data.account.$id) {
|
||||
// localStorage.setItem('cloud-hackathon-viewed', data.account.$id);
|
||||
// goto('/hackathon');
|
||||
// }
|
||||
// }
|
||||
|
||||
setInterval(() => {
|
||||
checkForFeedback(INTERVAL);
|
||||
|
||||
Reference in new issue
Block a user