welcome email as not all users have given names

This commit is contained in:
Viktor Barzin 2025-07-01 16:26:52 +00:00
parent 20ff91d663
commit 7c43907c2f
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 2 additions and 3 deletions

View file

@ -150,7 +150,7 @@ function App() {
</header>
<div className="flex flex-col h-screen w-full">
<div className="flex gap-2 p-2 bg-gray-100">
<h1>Welcome, {user.profile.name}!</h1>
<h1>Welcome, {user.profile.email}!</h1>
<Button onClick={logout}>Logout</Button>
<Parameters onSubmit={onSubmit} isOpen={isParametersModalOpen} setIsOpen={setIsParametersModalOpen} />
<ActiveQuery taskID={taskID} />

View file

@ -69,8 +69,7 @@ export function Parameters(
} = useForm<ParameterValues>()
const [action, setAction] = useState<'fetch-data' | 'visualize' | null>(null)
const [availableFromRawInput, setAvailableFromRawInput] = useState("now");
const [districts, setDistricts] = useState<string[]>([]);
console.log(districts)
const [_districts, setDistricts] = useState<string[]>([]);
useEffect(() => {
getUser().then(user => {