mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 12:52:29 +00:00
Fix type error
This commit is contained in:
1 parent
e0a8e84df4
commit
55eea7a968
1 file changed
+1
-1
@@ -25,7 +25,7 @@ export abstract class TranslatedError extends Error {
|
||||
messageKey: ParseKeys<DefaultNamespace, TOptions>,
|
||||
translationFn: TFunction<DefaultNamespace>,
|
||||
) {
|
||||
super(translationFn(messageKey, { lng: "en" } as TOptions));
|
||||
super(translationFn(messageKey, { lng: "en" }));
|
||||
this.translatedMessage = translationFn(messageKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user