From 72de8e066c569c4339ae38567bb7b153d34ff0b6 Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:33:37 +0200 Subject: [PATCH] fix grammar (#2506) --- src/initializer.tsx | 4 ++-- src/room/CallEndedView.tsx | 8 ++++---- src/widget.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/initializer.tsx b/src/initializer.tsx index 1f9f6c74..f7e57ba9 100644 --- a/src/initializer.tsx +++ b/src/initializer.tsx @@ -54,7 +54,7 @@ export class Initializer { public static initBeforeReact(): void { // this maybe also needs to return a promise in the future, // if we have to do async inits before showing the loading screen - // but this should be avioded if possible + // but this should be avoided if possible //i18n const languageDetector = new LanguageDetector(); @@ -118,7 +118,7 @@ export class Initializer { } Initializer.internalInstance = new Initializer(); Initializer.internalInstance.initPromise = new Promise((resolve) => { - // initStep calls itself recursivly until everything is initialized in the correct order. + // initStep calls itself recursively until everything is initialized in the correct order. // Then the promise gets resolved. Initializer.internalInstance.initStep(resolve); }); diff --git a/src/room/CallEndedView.tsx b/src/room/CallEndedView.tsx index dbf218a5..3cb928aa 100644 --- a/src/room/CallEndedView.tsx +++ b/src/room/CallEndedView.tsx @@ -51,11 +51,11 @@ export const CallEndedView: FC = ({ const history = useHistory(); const { displayName } = useProfile(client); - const [surveySubmitted, setSurverySubmitted] = useState(false); + const [surveySubmitted, setSurveySubmitted] = useState(false); const [starRating, setStarRating] = useState(0); const [submitting, setSubmitting] = useState(false); const [submitDone, setSubmitDone] = useState(false); - const submitSurvery: FormEventHandler = useCallback( + const submitSurvey: FormEventHandler = useCallback( (e) => { e.preventDefault(); const data = new FormData(e.target as HTMLFormElement); @@ -75,7 +75,7 @@ export const CallEndedView: FC = ({ setTimeout(() => { if (isPasswordlessUser) { // setting this renders the callEndedView with the invitation to create an account - setSurverySubmitted(true); + setSurveySubmitted(true); } else if (!confineToRoom) { // if the user already has an account immediately go back to the home screen history.push("/"); @@ -113,7 +113,7 @@ export const CallEndedView: FC = ({ We'd love to hear your feedback so we can improve your experience.

-
+ diff --git a/src/widget.ts b/src/widget.ts index 57e4d83b..c8d8e3c0 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -120,8 +120,8 @@ export const widget = ((): WidgetHelpers | null => { ]; const sendState = [ - userId, // legacy call membership events - `_${userId}_${deviceId}`, // session membership events + userId, // Legacy call membership events + `_${userId}_${deviceId}`, // Session membership events `${userId}_${deviceId}`, // MSC3779 session membership events ].map((stateKey) => ({ eventType: EventType.GroupCallMemberPrefix, @@ -172,7 +172,7 @@ export const widget = ((): WidgetHelpers | null => { const clientPromise = new Promise((resolve) => { (async (): Promise => { - // wait for the config file to be ready (we load very early on so it might not + // Wait for the config file to be ready (we load very early on so it might not // be otherwise) await Config.init(); await client.startClient({ clientWellKnownPollPeriod: 60 * 10 });