From 56dc6c663ae53d537cc0bf6799f9720488e5dfab Mon Sep 17 00:00:00 2001 From: "riho.takagi" Date: Mon, 20 Nov 2023 10:04:55 -0500 Subject: [PATCH] fix loading position --- .../src/client/admin-page/components/Liaisons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx b/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx index cb449452..e9915c51 100644 --- a/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx +++ b/media_commons_booking_app/src/client/admin-page/components/Liaisons.tsx @@ -55,11 +55,11 @@ export const Liaisons = () => { console.log('liaisonEmails', liaisonEmails); const addLiaisonUser = async () => { - setLoading(true); if (email === '' || department === '') { alert('Please fill in all the fields'); return; } + setLoading(true); if (liaisonEmails.includes(email)) { alert('This user is already registered');