Skip to content

Commit

Permalink
Merge pull request #120 from ThatConference/next/feature
Browse files Browse the repository at this point in the history
feature -> production
  • Loading branch information
theClarkSell committed Oct 20, 2023
2 parents 28e816c + cc44d27 commit ea82501
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
<div class="flex h-full items-center justify-between">
<div class="flex space-x-3">
<div class="font-semibold antialiased">
<a href="/" class="flex items-center space-x-2 ">
<a href="/" class="flex items-center space-x-2">
<LeftArrow />
<span>Back to THAT</span>
</a>
</div>
<div>||</div>
<div class="font-semibold antialiased">
<a href="/that-conference" class="flex items-center space-x-2 ">
<a href="/" class="flex items-center space-x-2">
<span>THAT Conference</span>
</a>
</div>
</div>
<div class="flex items-center space-x-12">
<div class="flex space-x-3">
<a href={`/that-conference`}>
<a href={`/`}>
<div class="flex space-x-4 font-semibold uppercase tracking-wide antialiased">
<div>THAT Conference</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
"version": "5.1.4",
"version": "5.1.5",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/_components/navigation/thatConference/NavHat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
</div>
<div>-</div>
<div class="font-semibold antialiased">
<a href="/that-conference" class="flex items-center space-x-2">
<a href="/" class="flex items-center space-x-2">
<span>Ticket are currently on sale</span>
</a>
</div>
</div>
<div class="flex items-center space-x-12">
<div class="flex items-center space-x-3">
<a href={`/that-conference`}>
<a href={`/`}>
<div class="flex space-x-4 font-semibold uppercase tracking-wide antialiased">
<div>THAT Conference</div>
</div>
Expand Down
14 changes: 5 additions & 9 deletions src/lib/stores/favorites.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writable } from 'svelte/store';
import { page } from '$app/stores';
import { browser } from '$app/environment';
import { page } from '$app/stores';

import favoritesQueryApi from '$dataSources/api.that.tech/me/favorites/queries';
import favoritesMutationsApi from '$dataSources/api.that.tech/me/favorites/mutations';
Expand Down Expand Up @@ -28,15 +28,11 @@ export async function toggle(sessionId, eventId) {
return results;
}

async function create() {
const initalValues = await get();
favoritesStore.set(initalValues);
}

if (browser) {
page.subscribe((values) => {
if (values?.data?.user?.profile) {
create();
page.subscribe(async (values) => {
if (values?.data?.user?.isAuthenticated) {
const initalValues = await get();
favoritesStore.set(initalValues);
}
});
}
Expand Down

1 comment on commit ea82501

@vercel
Copy link

@vercel vercel bot commented on ea82501 Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.