Next.js Discord

Discord Forum

React + Supabase integration help

Unanswered
Fox Sparrow posted this in #help-forum
Open in Discord
Fox SparrowOP
Hi everyone!

I'm developing a job application site using React and Supabase. I've encountered an issue where the phone number entered in the application form is not being saved to the database. Here's a breakdown of the problem:
The ApplicationForm component correctly captures the phone number.
The handleApply function in job-site.tsx receives the application data, but the phone number is undefined.
When sending data to Supabase, the phone field is null. All the other fields work.
I've checked the component props and state management, but can't identify where the phone number is being lost in the data flow. The console logs show that the phone number is missing when the data reaches the handleApply function.

I've added the two files which are responsible for this, the job-site.tsx's handleApply function handles the job application submission and the ApplicationForm.tsx is the form the user has to write his details in when applying to a job.

Any ideas? I already tried to Ask Claude and ChatGPT but to no avail

0 Replies