diff --git a/src/pages/creator/C6nSFpj9HTCZ5t-N3Rm3-HA.astro b/src/pages/creator/C6nSFpj9HTCZ5t-N3Rm3-HA.astro index da76079..89f20ee 100644 --- a/src/pages/creator/C6nSFpj9HTCZ5t-N3Rm3-HA.astro +++ b/src/pages/creator/C6nSFpj9HTCZ5t-N3Rm3-HA.astro @@ -10,13 +10,19 @@ let { data: subs } = await supabase .select("*") .eq('UserSubscribed', id) .eq('Id', CreatorId) + +if (subs[0] === undefined) { + var Subbed = false +} else { + var Subbed = true +} ---

Vsause

- {subs[0].Subscribed ? + {Subbed ? Unsubscribe : Subscribe