Extra spaces not handled properly in input field of recovery token

This commit is contained in:
koalasat 2024-10-18 22:37:28 +02:00
parent fc1a6b360e
commit a79d3c2330
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ const RobotPage = (): JSX.Element => {
maxHeight: `${maxHeight}em`,
}}
>
<RecoveryDialog setInputToken={setInputToken} setView={setView}/>
<RecoveryDialog setInputToken={setInputToken} setView={setView} />
<Grid container direction='column' alignItems='center' spacing={1} padding={2}>
<Grid item>
<Typography align='center' variant='h6'>

View File

@ -26,7 +26,7 @@ const RecoveryDialog = ({ setInputToken, setView }: Props): JSX.Element => {
const onClickRecover = () => {
garage.createRobot(federation, recoveryToken);
setInputToken(recoveryToken);
setInputToken(recoveryToken.trim());
setView('profile');
setOpen((open) => {
return { ...open, recovery: false };