Fix creating room as registered user
This commit is contained in:
parent
0e273a6dc5
commit
24ccfa0dd8
1 changed files with 8 additions and 3 deletions
|
@ -24,7 +24,7 @@ export function RegisteredView({ client }) {
|
||||||
(e) => {
|
(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const data = new FormData(e.target);
|
const data = new FormData(e.target);
|
||||||
const roomName = data.get("roomName");
|
const roomName = data.get("callName");
|
||||||
|
|
||||||
async function submit() {
|
async function submit() {
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
|
@ -89,12 +89,17 @@ export function RegisteredView({ client }) {
|
||||||
required
|
required
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
<Button type="submit" size="lg" disabled={loading}>
|
<Button
|
||||||
|
type="submit"
|
||||||
|
size="lg"
|
||||||
|
className={styles.button}
|
||||||
|
disabled={loading}
|
||||||
|
>
|
||||||
{loading ? "Loading..." : "Go"}
|
{loading ? "Loading..." : "Go"}
|
||||||
</Button>
|
</Button>
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
{error && (
|
{error && (
|
||||||
<FieldRow>
|
<FieldRow className={styles.fieldRow}>
|
||||||
<ErrorMessage>{error.message}</ErrorMessage>
|
<ErrorMessage>{error.message}</ErrorMessage>
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue