Skip to content

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

mobile: fix feature not locked

Ammar Ahmed1a56a22a338d
diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx
index d562fcd1b..bd8f77892 100644
--- a/apps/mobile/app/hooks/use-actions.tsx
+++ b/apps/mobile/app/hooks/use-actions.tsx
@@ -1169,7 +1169,7 @@ export const useActions = ({
id: "expiry-date",
title: item.expiryDate ? strings.unsetExpiry() : strings.setExpiry(),
icon: item.expiryDate ? "bomb-off" : "bomb",
- locked: features?.expiringNotes?.isAllowed,
+ locked: !features?.expiringNotes?.isAllowed,
onPress: async () => {
if (item.expiryDate) {
await db.notes.setExpiryDate(null, item.id);