Remove unused effect for setting

This commit is contained in:
Hugh Nimmo-Smith
2024-11-07 18:05:41 +00:00
parent c37c2e50bd
commit 190ac9be3d

View File

@@ -28,8 +28,6 @@ import { Initializer } from "./initializer";
import { MediaDevicesProvider } from "./livekit/MediaDevicesContext";
import { widget } from "./widget";
import { useTheme } from "./useTheme";
import { showNonMemberTiles } from "./settings/settings";
import { Config } from "./config/Config";
const SentryRoute = Sentry.withSentryRouting(Route);
@@ -73,13 +71,6 @@ export const App: FC<AppProps> = ({ history }) => {
.catch(logger.error);
});
// Update settings to use the non member tile information from the config if set
useEffect(() => {
if (loaded && Config.get().show_non_member_tiles) {
showNonMemberTiles.setValue(true);
}
});
const errorPage = <CrashView />;
return (