Guard against followers being unset

This commit is contained in:
Gabe Kangas
2022-07-12 13:14:39 -07:00
parent 5d297ae90d
commit c4f51ec2c1

View File

@@ -37,7 +37,7 @@ export default function FollowerCollection() {
<div>A message explaining how to follow goes here since there are no followers.</div> <div>A message explaining how to follow goes here since there are no followers.</div>
); );
if (followers.length === 0) { if (!followers?.length) {
return noFollowers; return noFollowers;
} }