Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix crash on opening sheet with icon

ammarahm-ed4d2c42330edd
diff --git a/apps/mobile/app/components/sheet-provider/index.js b/apps/mobile/app/components/sheet-provider/index.js
index 76449c7ef..f39b9a128 100644
--- a/apps/mobile/app/components/sheet-provider/index.js
+++ b/apps/mobile/app/components/sheet-provider/index.js
@@ -131,7 +131,7 @@ const SheetProvider = ({ context = "global" }) => {
{data?.icon ? (
<Icon
- color={colors[dialogData.iconColor] || colors.primary.accent}
+ color={colors[data.iconColor] || colors.primary.accent}
name={data.icon}
size={50}
/>