Skip to content

Commit 0a6ac6f

Browse files
committed
Fix typings
1 parent e685dab commit 0a6ac6f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/src/components/SessionDetail/CompatSessionDetail.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const CompatSessionDetail: React.FC<Props> = ({ session }) => {
7272

7373
const sessionDetails = [...finishedAt];
7474

75-
const clientDetails: { label: string; value: string | JSX.Element }[] = [];
75+
const clientDetails: { label: string; value: string | React.ReactElement }[] =
76+
[];
7677

7778
if (data.ssoLogin?.redirectUri) {
7879
clientDetails.push({

frontend/src/components/UnverifiedEmailAlert/UnverifiedEmailAlert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ const UnverifiedEmailAlert: React.FC<{
2727
const data = useFragment(UNVERIFIED_EMAILS_FRAGMENT, user);
2828
const [dismiss, setDismiss] = useState(false);
2929
const { t } = useTranslation();
30-
const currentCount = useRef<number>();
30+
const currentCount = useRef<number>(0);
3131

3232
const doDismiss = (): void => setDismiss(true);
3333

3434
useEffect(() => {
3535
if (currentCount.current !== data?.unverifiedEmails?.totalCount) {
36-
currentCount.current = data?.unverifiedEmails?.totalCount;
36+
currentCount.current = data?.unverifiedEmails?.totalCount || 0;
3737
setDismiss(false);
3838
}
3939
}, [data]);

0 commit comments

Comments
 (0)