From 08611b4e0800f111a781995c968bbb01995bb6b8 Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <ae@uio.no>
Date: Mon, 29 Nov 2021 12:36:36 +0100
Subject: [PATCH] Fix small frontend things

Aria did not match label when changing langauge, and an id was
duplicated
---
 frontend/src/components/identityLine/index.tsx           | 2 +-
 frontend/src/routes/sponsor/guest/newGuestRole/index.tsx | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/frontend/src/components/identityLine/index.tsx b/frontend/src/components/identityLine/index.tsx
index 54fbb24b..671ba159 100644
--- a/frontend/src/components/identityLine/index.tsx
+++ b/frontend/src/components/identityLine/index.tsx
@@ -31,7 +31,7 @@ const IdentityLine = ({ text, identity, reloadGuest }: IdentityLineProps) => {
         {!identity.verified_at ? (
           <div>
             <Button
-              aria-label="verify"
+              aria-label={t('button.verify')}
               onClick={() => setConfirmOpen(true)}
               disabled={!identity}
             >
diff --git a/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx b/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx
index 2d785909..f438dca6 100644
--- a/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx
+++ b/frontend/src/routes/sponsor/guest/newGuestRole/index.tsx
@@ -168,7 +168,9 @@ function NewGuestRole({ guest, reloadGuestInfo }: NewGuestRoleProps) {
       <form onSubmit={onSubmit}>
         <Stack spacing={2}>
           <FormControl>
-            <InputLabel id="ou-select-label">{t('input.roleType')}</InputLabel>
+            <InputLabel id="roletype-select-label">
+              {t('input.roleType')}
+            </InputLabel>
             <Select
               id="roletype-select"
               defaultValue=""
@@ -182,7 +184,7 @@ function NewGuestRole({ guest, reloadGuestInfo }: NewGuestRoleProps) {
           </FormControl>
 
           <FormControl>
-            <InputLabel id="ou-select-label">{t('common:ou')}</InputLabel>
+            <InputLabel id="ou-select-label-id">{t('common:ou')}</InputLabel>
             <Select
               labelId="ou-select-label"
               id="ou-select-label"
-- 
GitLab