Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Markusplay committed Jan 4, 2024
1 parent b4ae21e commit 760f95d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
with:
context: .
build-args:
NODE_ENV=${{ github.ref_name == 'master' && 'production' || 'development' }}
NODE_ENV=production
tags: fictadvisor/fictadvisor-web
1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dayjs.tz.setDefault('Europe/Kiev');
dayjs.locale({ ...uk, weekStart: 1 });
const queryClient = new QueryClient();

if (!process.browser) React.useLayoutEffect = React.useEffect;
export default function RootLayout({
children,
}: {
Expand Down
3 changes: 1 addition & 2 deletions src/components/templates/account-page/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ import * as stylesMui from './AccountPage.styles';

const AccountPage = () => {
const { replace } = useRouter();
const query = useSearchParams();
const { isLoggedIn } = useAuthentication();
const [index, setIndex] = useState<AccountPageTab>(AccountPageTab.GENERAL);

useEffect(() => {
if (!isLoggedIn) void replace('/login?~account');
}, [isLoggedIn, replace]);

const handleChange = async (event: SyntheticEvent, value: AccountPageTab) => {
const handleChange = async (_: SyntheticEvent, value: AccountPageTab) => {
setIndex(value);
};

Expand Down

0 comments on commit 760f95d

Please sign in to comment.