Skip to content

Commit d49e6d5

Browse files
fix: convert empty image src to null to prevent Next.js warning (#1070)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 811ef4f commit d49e6d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/app/landingComponents/YourTeamDemo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ const MenuIcon = () => {
1616

1717
const UserItem = ({ name = "", src = "", ...props }) => {
1818
const initials = name.split(' ').map(n => n[0]).join('')
19+
const imageSrc = src === "" ? null : src
1920
return <div className='flex items-center justify-between' {...props}>
2021
<div className="flex items-center space-x-2">
21-
<Avatar src={src} fallback={initials} />
22+
<Avatar src={imageSrc} fallback={initials} />
2223
<Text className="font-light !text-sm hover:underline cursor-pointer text-blue-950">{name}</Text>
2324
</div>
2425
<span className='cursor-pointer'>

0 commit comments

Comments
 (0)