More consistent variable naming

This commit is contained in:
David Baker
2023-10-06 16:15:16 +01:00
parent 715c5c73ca
commit f2435f1c31
2 changed files with 7 additions and 7 deletions

View File

@@ -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
)
);
}

View File

@@ -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
)
);
}