Skip to content

Commit

Permalink
refactor: delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
celinechoiii authored Nov 18, 2024
1 parent 6a82c06 commit a14f0e3
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions utils/onboardingContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,41 +60,3 @@ export const OnboardingProvider = ({ children }: { children: ReactNode }) => {
</OnboardingContext.Provider>
);
};

// const submitOnboardingData = async () => {
// try {
// const { data: volunteerData, error: volunteerError } = await supabase
// .from('volunteers')
// .insert([
// {
// first_name: generalInfo.firstName,
// last_name: generalInfo.lastName,
// phone_number: generalInfo.phoneNumber,
// },
// ]);

// if (volunteerError) throw volunteerError;

// const { data: preferencesData, error: preferencesError } = await supabase
// .from('volunteer_preferences')
// .insert([
// {
// facility_type: preferences.facilityType,
// city: preferences.location,
// audience: preferences.audience,
// instruments: preferences.preferredEquipment,
// type_of_act: preferences.typeOfAct,
// genre: preferences.genre,
// },
// ]);

// if (preferencesError) throw preferencesError;

// console.log('Onboarding data submitted successfully:', {
// volunteerData,
// preferencesData,
// });
// } catch (error) {
// console.error('Error submitting onboarding data:', error);
// }
// };

0 comments on commit a14f0e3

Please sign in to comment.