Skip to content

Commit

Permalink
fix: removing redundant optional chaining in templates (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
HatulaPro committed Nov 18, 2022
1 parent 16695c3 commit d5d5a2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thick-yaks-exist.md
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

fix: removing redundant optional chaining in templates
2 changes: 1 addition & 1 deletion cli/template/page-studs/index/with-auth-trpc-tw.tsx
Expand Up @@ -67,7 +67,7 @@ const AuthShowcase: React.FC = () => {
return (
<div className="flex flex-col items-center justify-center gap-4">
<p className="text-center text-2xl text-white">
{sessionData && <span>Logged in as {sessionData?.user?.name}</span>}
{sessionData && <span>Logged in as {sessionData.user?.name}</span>}
{secretMessage && <span> - {secretMessage}</span>}
</p>
<button
Expand Down
2 changes: 1 addition & 1 deletion cli/template/page-studs/index/with-auth-trpc.tsx
Expand Up @@ -68,7 +68,7 @@ const AuthShowcase: React.FC = () => {
return (
<div className={styles.authContainer}>
<p className={styles.showcaseText}>
{sessionData && <span>Logged in as {sessionData?.user?.name}</span>}
{sessionData && <span>Logged in as {sessionData.user?.name}</span>}
{secretMessage && <span> - {secretMessage}</span>}
</p>
<button
Expand Down

1 comment on commit d5d5a2f

@vercel
Copy link

@vercel vercel bot commented on d5d5a2f Nov 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.