File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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 ] ) ;
You can’t perform that action at this time.
0 commit comments