mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-09 20:09:36 +02:00
mobile: prevent crash in note properties when expiryDate is undefined
Signed-off-by: kashaf-ansari-dev <kashafansari3108@gmail.com>
This commit is contained in:
committed by
Ammar Ahmed
parent
6ddd5078ac
commit
9e5ed67eb3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user