Getting started on Tech Tracker. Added TV Context
This commit is contained in:
@ -149,7 +149,7 @@ export const getUser = async (): Promise<Result<User>> => {
|
||||
const { data, error } = await supabase.auth.getUser();
|
||||
if (error) throw error;
|
||||
return { success: true, data: data.user };
|
||||
} catch (error) {
|
||||
return { success: false, error: 'Could not get user!' };
|
||||
} catch {
|
||||
return { success: false, error: `Could not get user!` };
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user