From 9e5ed67eb31bbb304b671c7a82ff6574a5e389d0 Mon Sep 17 00:00:00 2001 From: kashaf-ansari-dev Date: Mon, 1 Jun 2026 23:49:44 +0500 Subject: [PATCH] mobile: prevent crash in note properties when expiryDate is undefined Signed-off-by: kashaf-ansari-dev --- apps/mobile/app/hooks/use-actions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx index e0fb8b95e..a23dd9c23 100644 --- a/apps/mobile/app/hooks/use-actions.tsx +++ b/apps/mobile/app/hooks/use-actions.tsx @@ -1183,7 +1183,7 @@ export const useActions = ({ title: item.expiryDate?.value ? strings.unsetExpiry() : strings.setExpiry(), - icon: item.expiryDate.value ? "bomb-off" : "bomb", + icon: item.expiryDate?.value ? "bomb-off" : "bomb", locked: !features?.expiringNotes?.isAllowed, onPress: async () => { if (item.expiryDate?.value) {