Skip to content

Commit

Permalink
chore: return null from alert banner if no preview (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSingleton committed Dec 16, 2022
1 parent 4afb504 commit b525795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/AlertBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Alert({
preview?: boolean
loading?: boolean
}) {
if (!preview) return
if (!preview) return null

return (
<div className="border-b border-accent-7 bg-accent-7 text-white">
Expand Down

1 comment on commit b525795

@vercel
Copy link

@vercel vercel bot commented on b525795 Dec 16, 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.