Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed May 12, 2024
1 parent 479ebce commit ee06c47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion apps/dashboard/src/components/select-category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export function SelectCategory({ selected, placeholder, onChange }: Props) {
)}
placeholder={placeholder}
value={selectedValue}
// onRemove={}
CreateComponent={({ value }) => (
<div className="flex items-center space-x-2">
<div
Expand Down
6 changes: 3 additions & 3 deletions packages/supabase/src/queries/cached-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export const getTransactions = async (
export const getUser = async () => {
const supabase = createClient();
const {
data: { user },
} = await supabase.auth.getUser();
data: { session },
} = await supabase.auth.getSession();

const userId = user?.id;
const userId = session?.user.id;

if (!userId) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const Combobox = ({
<Loader2 className="w-[16px] h-[16px] absolute right-2 animate-spin text-dark-gray" />
)}

{!isLoading && selected && (
{!isLoading && selected && onRemove && (
<Icons.Close
className="w-[18px] h-[18px] absolute right-2"
onClick={handleOnRemove}
Expand Down

0 comments on commit ee06c47

Please sign in to comment.