Tidy config of show non-member settings

This commit is contained in:
Hugh Nimmo-Smith
2024-11-07 14:02:25 +00:00
parent 95effe0852
commit 6bda8953ab
6 changed files with 32 additions and 17 deletions

View File

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