Skip to content

Commit bad4845

Browse files
n3rdc4ptnCopilot
andauthored
Update src/views/Login.tsx
Co-authored-by: Copilot <[email protected]>
1 parent beb0715 commit bad4845

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/views/Login.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ import { ThemingParameters } from '@ui5/webcomponents-react-base';
66
import { useLink } from '../lib/shared/useLink.ts';
77
import { useTranslation } from 'react-i18next';
88
import * as Sentry from '@sentry/react';
9+
import { useEffect } from 'react';
910

1011
export default function LoginView() {
1112
const auth = useAuthOnboarding();
1213
const { documentationHomepage } = useLink();
1314
const { t } = useTranslation();
14-
15-
Sentry.addBreadcrumb({
16-
category: 'auth',
17-
message: 'Visit Login Page',
18-
level: 'info',
19-
});
20-
15+
useEffect(() => {
16+
Sentry.addBreadcrumb({
17+
category: 'auth',
18+
message: 'Visit Login Page',
19+
level: 'info',
20+
});
21+
}, []);
2122
return (
2223
<FlexBox
2324
className="box"

0 commit comments

Comments
 (0)