From c69b393776e65d19fcde0c8d05ef992963a32c73 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 22 Jan 2021 08:57:52 -0800 Subject: [PATCH] fix: JS error when submitting invites from sidebar-triggered modal --- app/components/Sidebar/Main.js | 3 +-- shared/i18n/locales/en_US/translation.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/Sidebar/Main.js b/app/components/Sidebar/Main.js index 61d06cdd7..ae385e95c 100644 --- a/app/components/Sidebar/Main.js +++ b/app/components/Sidebar/Main.js @@ -63,8 +63,7 @@ function MainSidebar() { setInviteModalOpen(true); }, []); - const handleInviteModalClose = React.useCallback((ev: SyntheticEvent<>) => { - ev.preventDefault(); + const handleInviteModalClose = React.useCallback(() => { setInviteModalOpen(false); }, []); diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 3d4e8cbf6..b722ca282 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -90,6 +90,7 @@ "Untitled": "Untitled", "Home": "Home", "Starred": "Starred", + "Settings": "Settings", "Invite people…": "Invite people…", "Invite people": "Invite people", "Create a collection": "Create a collection", @@ -111,7 +112,6 @@ "System": "System", "Light": "Light", "Dark": "Dark", - "Settings": "Settings", "API documentation": "API documentation", "Changelog": "Changelog", "Send us feedback": "Send us feedback",