mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Extra spaces not handled properly in input field of recovery token
This commit is contained in:
parent
fc1a6b360e
commit
a79d3c2330
@ -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'>
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user