This commit is contained in:
vishnyanetchereshnya 2024-07-14 16:59:05 +03:00 committed by GitHub
parent e41fed6372
commit 4d1cf661f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,11 +56,11 @@ export function NotesDataModal({ modalProps, close }: {
const [usersNotesData, refreshNotesData] = useReducer(() => {
return Object.entries(getNotes())
.map<[string, string]>(([userId, { note }]) => [userId, note])
.filter((([_, note]) => note !== ""));
.filter((([_, note]) => note && note !== ""));
},
Object.entries(getNotes())
.map<[string, string]>(([userId, { note }]) => [userId, note])
.filter((([_, note]) => note !== ""))
.filter((([_, note]) => note && note !== ""))
);
RefreshNotesDataEx = refreshNotesData;