More consistent variable naming
This commit is contained in:
@@ -74,7 +74,7 @@ export function RegisteredView({ client }: Props) {
|
||||
setError(undefined);
|
||||
setLoading(true);
|
||||
|
||||
const roomCreateResult = await createRoom(
|
||||
const createRoomResult = await createRoom(
|
||||
client,
|
||||
roomName,
|
||||
e2eeEnabled ?? false
|
||||
@@ -82,9 +82,9 @@ export function RegisteredView({ client }: Props) {
|
||||
|
||||
history.push(
|
||||
getRelativeRoomUrl(
|
||||
roomCreateResult.roomId,
|
||||
createRoomResult.roomId,
|
||||
roomName,
|
||||
roomCreateResult.password
|
||||
createRoomResult.password
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,9 +85,9 @@ export const UnauthenticatedView: FC = () => {
|
||||
true
|
||||
);
|
||||
|
||||
let roomCreateResult;
|
||||
let createRoomResult;
|
||||
try {
|
||||
roomCreateResult = await createRoom(
|
||||
createRoomResult = await createRoom(
|
||||
client,
|
||||
roomName,
|
||||
e2eeEnabled ?? false
|
||||
@@ -122,9 +122,9 @@ export const UnauthenticatedView: FC = () => {
|
||||
setClient({ client, session });
|
||||
history.push(
|
||||
getRelativeRoomUrl(
|
||||
roomCreateResult.roomId,
|
||||
createRoomResult.roomId,
|
||||
roomName,
|
||||
roomCreateResult.password
|
||||
createRoomResult.password
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user