From 5b5f73f25d79f23a38e71f7c37a780edffb15faa Mon Sep 17 00:00:00 2001 From: Lasse Fredheim <lass@uio.no> Date: Mon, 27 Feb 2023 19:27:24 +0100 Subject: [PATCH] Remove onClick from submit button --- frontend/src/routes/sponsor/guest/newGuestRole/index.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx b/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx index fcf270ed..f01c9945 100644 --- a/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx +++ b/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx @@ -399,12 +399,7 @@ function NewGuestRole({ guest, reloadGuestInfo }: NewGuestRoleProps) { label={t('input.searchable')} /> )} - <Button - onClick={onSubmit} - variant="contained" - color="secondary" - type="submit" - > + <Button variant="contained" color="secondary" type="submit"> {t('button.save')} </Button> <Button -- GitLab