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
2 changed files with 2 additions and 2 deletions

View File

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