Skip to content

Commit c984a84

Browse files
codercatdevAlex Patterson
andauthored
fix show drafts (CodingCatDev#503)
Co-authored-by: Alex Patterson <alex.patterson@fusionauth.io>
1 parent 10782a8 commit c984a84

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/codingcatdev/src/lib/server/firebase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const getShowDrafts = async (uid?: string) => {
7676
const db = getFirestore();
7777
const doc = await db.collection('users').doc(user.uid).get();
7878
const userData = doc.data();
79-
return userData?.settings?.showDrafts;
79+
return userData?.pro?.settings?.showDrafts;
8080
};
8181

8282
/* DB */

apps/codingcatdev/src/routes/(protected)/dashboard/DashboardComingSoon.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
<ProButton products={data.products} uid={data.user?.uid} />
1919
</div>
2020
{:else if data?.showDrafts}
21-
<ContentCards data={{ contentType: data.contentType, content: data.comingSoon }} />
21+
<ContentCards
22+
data={{ contentType: data.contentType, content: data.comingSoon, user: data.user }}
23+
/>
2224
{:else}
2325
<div class="flex">
2426
<div class="text-xl">

0 commit comments

Comments
 (0)