Skip to content

Commit

Permalink
Fix explicit lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepnh5 committed Dec 23, 2024
1 parent f645454 commit 3c680a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screens/CommunityProfile/CommunityProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const CommunityProfile = (): JSX.Element => {
React.useEffect(() => {
const preLoginData: PreLoginImageryDataType | undefined =
data?.getCommunityData;
preLoginData &&
if (preLoginData) {
setProfileVariable({
name: preLoginData.name ?? '',
websiteLink: preLoginData.websiteLink ?? '',
Expand All @@ -104,6 +104,7 @@ const CommunityProfile = (): JSX.Element => {
reddit: preLoginData.socialMediaUrls.reddit ?? '',
slack: preLoginData.socialMediaUrls.slack ?? '',
});
}
}, [data]);

/**
Expand Down

0 comments on commit 3c680a3

Please sign in to comment.