fix: when renaming users start with old names
This commit is contained in:
parent
2b1e7be193
commit
260fb870e1
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ interface Props {
|
||||||
export default function Rename({ username, magic }: Props) {
|
export default function Rename({ username, magic }: Props) {
|
||||||
const submit = useSubmit()
|
const submit = useSubmit()
|
||||||
const dialogState = useState(false)
|
const dialogState = useState(false)
|
||||||
const [newName, setNewName] = useState('')
|
const [newName, setNewName] = useState(username)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue