Final Feature 9c #10

Merged
Lars merged 18 commits from develop into main 2026-03-21 12:41:41 +01:00
Showing only changes of commit e62b05c224 - Show all commits

View File

@ -14,15 +14,17 @@ export default function Verify() {
const [email, setEmail] = useState('') const [email, setEmail] = useState('')
const [resending, setResending] = useState(false) const [resending, setResending] = useState(false)
const [resendSuccess, setResendSuccess] = useState(false) const [resendSuccess, setResendSuccess] = useState(false)
const [hasVerified, setHasVerified] = useState(false)
useEffect(() => { useEffect(() => {
const verify = async () => { if (hasVerified) return // Prevent React StrictMode double execution
if (!token) { if (!token) {
setStatus('error') setStatus('error')
setError('Kein Verifikations-Token gefunden') setError('Kein Verifikations-Token gefunden')
return return
} }
setHasVerified(true)
const verify = async () => {
try { try {
const result = await api.verifyEmail(token) const result = await api.verifyEmail(token)