diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx index e0516ce57..e0fb8b95e 100644 --- a/apps/mobile/app/hooks/use-actions.tsx +++ b/apps/mobile/app/hooks/use-actions.tsx @@ -1180,11 +1180,13 @@ export const useActions = ({ }, { id: "expiry-date", - title: item.expiryDate ? strings.unsetExpiry() : strings.setExpiry(), - icon: item.expiryDate ? "bomb-off" : "bomb", + title: item.expiryDate?.value + ? strings.unsetExpiry() + : strings.setExpiry(), + icon: item.expiryDate.value ? "bomb-off" : "bomb", locked: !features?.expiringNotes?.isAllowed, onPress: async () => { - if (item.expiryDate) { + if (item.expiryDate?.value) { await db.notes.setExpiryDate(null, item.id); setItem((await db.notes.note(item.id)) as Item); } else {