diff --git a/src/components/views/elements/DesktopBuildsNotice.tsx b/src/components/views/elements/DesktopBuildsNotice.tsx
index cb664f02d01..aea2e3d48f4 100644
--- a/src/components/views/elements/DesktopBuildsNotice.tsx
+++ b/src/components/views/elements/DesktopBuildsNotice.tsx
@@ -40,23 +40,22 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
if (EventIndexPeg.get()) return null;
if (EventIndexPeg.error) {
- return <>
- { _t("Message search initialisation failed, check your settings for more information", {}, {
- a: sub => (
-
+ { _t("Message search initialisation failed, check your settings for more information", {}, {
+ a: sub => ( {
evt.preventDefault();
dis.dispatch({
action: Action.ViewUserSettings,
initialTabId: UserTab.Security,
});
- }}
- >
+ }}>
{ sub }
- ),
- }) }
- >;
+ ),
+ }) }
+
+ );
}
const brand = SdkConfig.get("brand");
@@ -102,4 +101,4 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
{ text }
);
-}
+}
\ No newline at end of file