fix handleApply call

This commit is contained in:
Pranita 2025-06-26 19:07:24 +05:30
parent ff3bc7b822
commit cbb6ed3c87
2 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,8 @@ const CustomiseHomeModal = ({
}, [sidebarItems, selectedKey, handleSidebarClick]); }, [sidebarItems, selectedKey, handleSidebarClick]);
const handleApply = () => { const handleApply = () => {
if (onBackgroundColorUpdate) { const colorChanged = selectedColor !== currentBackgroundColor;
if (onBackgroundColorUpdate && colorChanged) {
onBackgroundColorUpdate(selectedColor); onBackgroundColorUpdate(selectedColor);
} }

View File

@ -45,7 +45,7 @@ const WidgetCard = ({
)} )}
</div> </div>
<Typography.Paragraph className="widget-desc"> <Typography.Paragraph className="widget-desc">
{widget.description || 'No description available.'} {widget.description ?? 'No description available.'}
</Typography.Paragraph> </Typography.Paragraph>
</Card> </Card>
); );