fix: when renaming users start with old names
This commit is contained in:
parent
2b1e7be193
commit
260fb870e1
@ -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…
x
Reference in New Issue
Block a user