diff --git a/src/components/Community/Header.tsx b/src/components/Community/Header.tsx index 81f7008..40f75e6 100644 --- a/src/components/Community/Header.tsx +++ b/src/components/Community/Header.tsx @@ -28,9 +28,17 @@ const Header: React.FC = ({ communityData }) => { - {communityData.imageURL ? ( + {/* using state instead of fetching from db as no refresh of the page is required */} + {communityStateValue.currentCommunity?.imageURL ? ( // If community has image then display the image - + Community icons ) : ( // If the community has no image, show this default preset one