From 2523140d375b83f6398f099c20ff1a4b94904157 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Mon, 17 Feb 2025 21:27:42 -0800 Subject: [PATCH] Fix typecheck error --- .../components/admin/UserDirectory/UserDirectory.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/desktop-client/src/components/admin/UserDirectory/UserDirectory.tsx b/packages/desktop-client/src/components/admin/UserDirectory/UserDirectory.tsx index eabe860a45a..98982445f0b 100644 --- a/packages/desktop-client/src/components/admin/UserDirectory/UserDirectory.tsx +++ b/packages/desktop-client/src/components/admin/UserDirectory/UserDirectory.tsx @@ -124,11 +124,13 @@ function UserDirectoryContent({ if ('error' in loadedUsers) { dispatch( addNotification({ - type: 'error', - id: 'error', - title: t('Error getting users'), - sticky: true, - message: getUserDirectoryErrors(loadedUsers.error), + notification: { + type: 'error', + id: 'error', + title: t('Error getting users'), + sticky: true, + message: getUserDirectoryErrors(loadedUsers.error), + }, }), ); setLoading(false);