diff --git a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsViewModel.swift b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsViewModel.swift index 6e11ee780..4ea0093f9 100644 --- a/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsViewModel.swift +++ b/Splito/UI/Home/Expense/Expense Detail/ExpenseDetailsViewModel.swift @@ -116,8 +116,9 @@ class ExpenseDetailsViewModel: BaseViewModel, ObservableObject { } func handleNoteTap() { - guard let expense else { return } - showAddNoteEditor = expense.isActive + guard let expense, expense.isActive, let userId = preference.user?.id, + let group, group.members.contains(userId) else { return } + showAddNoteEditor = true } func handleEditBtnAction() {