Skip to content

Commit

Permalink
Fixes after merge :(
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Oct 4, 2023
1 parent 5989a25 commit 6bcfdb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
9 changes: 4 additions & 5 deletions src/components/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ export default function Account({ session }: { session: Session }) {
const [gender, setGender] = useState('');
const [raceEthnicity, setRaceEthnicity] = useState('');

useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
if (session) getProfile();
}, [session]);

const getProfile = async () => {
try {
setLoading(true);
Expand Down Expand Up @@ -65,6 +60,10 @@ export default function Account({ session }: { session: Session }) {
}
};

useEffect(() => {
if (session) getProfile();
}, [session]);

const updateProfile = async () => {
try {
setLoading(true);
Expand Down
21 changes: 0 additions & 21 deletions src/lib/supabase.ts

This file was deleted.

0 comments on commit 6bcfdb3

Please sign in to comment.