mobile: prevent crash in note properties when expiryDate is undefined

Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
This commit is contained in:
kashaf-ansari-dev
2026-06-01 23:49:44 +05:00
committed by Ammar Ahmed
parent 6ddd5078ac
commit 9e5ed67eb3

View File

@@ -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) {