Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

lw: detect gh metadata info update (#36977)

Francesco Sansalvadore5f95cd488997
diff --git a/apps/www/components/LaunchWeek/15/Ticketing/LW15Ticket.tsx b/apps/www/components/LaunchWeek/15/Ticketing/LW15Ticket.tsx
index 6c7cf6d179b..57ea58e3b77 100644
--- a/apps/www/components/LaunchWeek/15/Ticketing/LW15Ticket.tsx
+++ b/apps/www/components/LaunchWeek/15/Ticketing/LW15Ticket.tsx
@@ -69,7 +69,7 @@ const LW15Ticket = ({
className="relative z-10 flex flex-col p-4 gap-4 w-full h-full"
style={{ backgroundColor: `${bg}30` }}
>
- <div className="absolute top-5 bg-background dark:bg-black mx-auto inset-x-0 h-[15px] w-[50px] rounded-lg z-30 overflow-hidden">
+ <div className="absolute top-5 border bg-background dark:bg-black mx-auto inset-x-0 h-[15px] w-[50px] rounded-lg z-30 overflow-hidden">
<span className="absolute inset-0 w-full h-full" style={{ background: `${fg}07` }} />
</div>
<div className="w-full h-[50px] flex items-center justify-between">
diff --git a/apps/www/components/LaunchWeek/15/hooks/use-registration.ts b/apps/www/components/LaunchWeek/15/hooks/use-registration.ts
index 74aec7b3598..03c528651e1 100644
--- a/apps/www/components/LaunchWeek/15/hooks/use-registration.ts
+++ b/apps/www/components/LaunchWeek/15/hooks/use-registration.ts
@@ -246,12 +246,16 @@ export async function updateTicketColors({
background: string
foreground: string
}) {
- console.log('previous userMetadata', userMetadata)
+ const githubUserData = await fetchGitHubUser(username)
const { error } = await supabase
.from('tickets')
.update({
metadata: {
...userMetadata,
+ ...(githubUserData && {
+ company: githubUserData.company,
+ location: githubUserData.location,
+ }),
colors: {
background,
foreground,