Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

[no ci] Misc fixes

fzaninottod289eed659fb
diff --git a/src/contacts/Avatar.tsx b/src/contacts/Avatar.tsx
index 31d81876..2f476b28 100644
--- a/src/contacts/Avatar.tsx
+++ b/src/contacts/Avatar.tsx
@@ -24,8 +24,8 @@ export const Avatar = (props: {
fontSize: props.height ? '0.6rem' : undefined,
}}
>
- {record.first_name?.charAt(0)}
- {record.last_name?.charAt(0)}
+ {record.first_name?.charAt(0).toUpperCase()}
+ {record.last_name?.charAt(0).toUpperCase()}
</MuiAvatar>
);
};
diff --git a/src/deals/DealInputs.tsx b/src/deals/DealInputs.tsx
index 14bcc342..993e3ccf 100644
--- a/src/deals/DealInputs.tsx
+++ b/src/deals/DealInputs.tsx
@@ -142,6 +142,7 @@ const DealMiscInputs = () => {
validate={[validateRequired]}
helperText={false}
inputProps={{ max: '9999-12-31' }}
+ defaultValue={new Date().toISOString().split('T')[0]}
/>
<SelectInput
source="stage"