fix: allow password retry when joining via share link
- Password errors now stay in password prompt UI instead of redirecting to error page - Error message clears when user starts typing new password - Users can now retry incorrect passwords without losing the join flow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -323,7 +323,8 @@ export default function JoinRoomPage({ params }: { params: { code: string } }) {
|
||||
}
|
||||
}
|
||||
|
||||
if (error) {
|
||||
// Only show error page for non-password errors (password errors are shown in the password prompt UI)
|
||||
if (error && !showPasswordPrompt) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@@ -455,7 +456,10 @@ export default function JoinRoomPage({ params }: { params: { code: string } }) {
|
||||
<input
|
||||
type="password"
|
||||
value={password}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
onChange={(e) => {
|
||||
setPassword(e.target.value)
|
||||
setError(null) // Clear error when user starts typing
|
||||
}}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && password) {
|
||||
handlePasswordSubmit()
|
||||
|
||||
Reference in New Issue
Block a user