diff --git a/src/script/page/AppMain.tsx b/src/script/page/AppMain.tsx index 9737c39ea6b..7364a319026 100644 --- a/src/script/page/AppMain.tsx +++ b/src/script/page/AppMain.tsx @@ -95,6 +95,8 @@ export const AppMain: FC = ({ useInitializeRootFontSize(); + const {showSmallOffset, showLargeOffset} = useWarnings(); + if (!apiContext) { throw new Error('API Context has not been set'); } @@ -112,8 +114,6 @@ export const AppMain: FC = ({ 'viewMode', ]); - const {showSmallOffset, showLargeOffset} = useWarnings(); - const teamState = container.resolve(TeamState); const userState = container.resolve(UserState);