Skip to content

Commit ee7ca54

Browse files
committed
fix: rm duplicate back to login button after password reset form submission
1 parent 812a40c commit ee7ca54

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/pages/ForgotPassword.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ export default function ForgotPassword() {
7272
</form>
7373
</CardContent>
7474
)}
75-
<CardFooter>
76-
<div className="text-sm text-center w-full">
77-
<Link to="/login" className="inline-flex items-center text-primary hover:underline">
78-
<ArrowLeft className="w-4 h-4 mr-1" />
79-
Back to login
80-
</Link>
81-
</div>
82-
</CardFooter>
75+
{!isSubmitted && (
76+
<CardFooter>
77+
<div className="text-sm text-center w-full">
78+
<Link to="/login" className="inline-flex items-center text-primary hover:underline">
79+
<ArrowLeft className="w-4 h-4 mr-1" />
80+
Back to login
81+
</Link>
82+
</div>
83+
</CardFooter>
84+
)}
8385
</Card>
8486
</div>
8587
)

0 commit comments

Comments
 (0)