File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
_official-tutorial/app/routes Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,17 @@ export default function Contact() {
5656 < Favorite contact = { contact } />
5757 </ h1 >
5858
59- { contact . twitter ? < p >
59+ { contact . twitter ? (
60+ < p >
6061 < a
6162 target = "_blank"
6263 href = { `https://twitter.com/${ contact . twitter } ` }
6364 rel = "noreferrer"
6465 >
6566 { contact . twitter }
6667 </ a >
67- </ p > : null }
68+ </ p >
69+ ) : null }
6870
6971 { contact . notes ? < p > { contact . notes } </ p > : null }
7072
Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ export default function Login() {
9393 return (
9494 < div >
9595 < h1 > Login</ h1 >
96- { ( clientAction ?. error || actionData ?. error ) ? < p > { clientAction ?. error || actionData ?. error } </ p > : null }
96+ { clientAction ?. error || actionData ?. error ? (
97+ < p > { clientAction ?. error || actionData ?. error } </ p >
98+ ) : null }
9799 < form method = "post" onSubmit = { handleSubmit } >
98100 < input
99101 style = { { display : "block" } }
You can’t perform that action at this time.
0 commit comments