Release/v0.2.31 (#188)

This commit is contained in:
Doh
2026-03-07 09:53:36 -05:00
committed by GitHub
parent b01c5dcd6a
commit 62b5ea41b3
21 changed files with 548 additions and 56 deletions

View File

@@ -5,13 +5,13 @@ import { Input } from './ui/input';
import { Button } from './ui/button';
import { Label } from './ui/label';
import { User as UserIcon } from 'lucide-react';
import { User } from '@/lib/types';
import { SafeUser } from '@/lib/types';
import { toast } from '@/hooks/use-toast';
import { useState } from 'react';
import { useTranslations } from 'next-intl';
interface PasswordEntryFormProps {
user: User;
user: SafeUser;
onCancel: () => void;
onSubmit: (password: string) => Promise<void>;
error?: string;
@@ -24,7 +24,7 @@ export default function PasswordEntryForm({
error
}: PasswordEntryFormProps) {
const t = useTranslations('PasswordEntryForm');
const hasPassword = !!user.password;
const hasPassword = user.hasPassword ?? false;
const [password, setPassword] = useState('');
const handleSubmit = async (e: React.FormEvent) => {