File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ const CompatSessionDetail: React.FC<Props> = ({ session }) => {
72
72
73
73
const sessionDetails = [ ...finishedAt ] ;
74
74
75
- const clientDetails : { label : string ; value : string | JSX . Element } [ ] = [ ] ;
75
+ const clientDetails : { label : string ; value : string | React . ReactElement } [ ] =
76
+ [ ] ;
76
77
77
78
if ( data . ssoLogin ?. redirectUri ) {
78
79
clientDetails . push ( {
Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ export const UNVERIFIED_EMAILS_FRAGMENT = graphql(/* GraphQL */ `
22
22
` ) ;
23
23
24
24
const UnverifiedEmailAlert : React . FC < {
25
- user ? : FragmentType < typeof UNVERIFIED_EMAILS_FRAGMENT > ;
25
+ user : FragmentType < typeof UNVERIFIED_EMAILS_FRAGMENT > ;
26
26
} > = ( { user } ) => {
27
27
const data = useFragment ( UNVERIFIED_EMAILS_FRAGMENT , user ) ;
28
28
const [ dismiss , setDismiss ] = useState ( false ) ;
29
29
const { t } = useTranslation ( ) ;
30
- const currentCount = useRef < number > ( ) ;
30
+ const currentCount = useRef < number > ( data . unverifiedEmails . totalCount ) ;
31
31
32
32
const doDismiss = ( ) : void => setDismiss ( true ) ;
33
33
34
34
useEffect ( ( ) => {
35
- if ( currentCount . current !== data ? .unverifiedEmails ? .totalCount ) {
36
- currentCount . current = data ? .unverifiedEmails ? .totalCount ;
35
+ if ( currentCount . current !== data . unverifiedEmails . totalCount ) {
36
+ currentCount . current = data . unverifiedEmails . totalCount ;
37
37
setDismiss ( false ) ;
38
38
}
39
39
} , [ data ] ) ;
40
40
41
- if ( ! data ? .unverifiedEmails ? .totalCount || dismiss ) {
41
+ if ( ! data . unverifiedEmails . totalCount || dismiss ) {
42
42
return null ;
43
43
}
44
44
You can’t perform that action at this time.
0 commit comments