File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src-ts/tools/learn/learn-lib/tca-certification-completed-modal Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,15 @@ const TCACertificationCompletedModal: FC<TCACertificationCompletedModalProps>
2020 = useSessionStorage < boolean > ( storeKey , false )
2121
2222 function handleClick ( ) : void {
23- props . onClose ( )
23+ handleClose ( )
2424 window . open ( getTCACertificateUrl ( props . certification . dashedName ) , '_blank' )
2525 }
2626
27+ function handleClose ( ) : void {
28+ setIsOpen ( false )
29+ props . onClose ( )
30+ }
31+
2732 useEffect ( ( ) => {
2833 if ( ! storeKey || sessionStorage . getItem ( storeKey ) !== null ) {
2934 return
@@ -34,7 +39,7 @@ const TCACertificationCompletedModal: FC<TCACertificationCompletedModalProps>
3439
3540 return (
3641 < BaseModal
37- onClose = { props . onClose }
42+ onClose = { handleClose }
3843 open = { isOpen }
3944 size = 'sm'
4045 classNames = { { modal : styles . completedModal , root : styles . modalRoot } }
You can’t perform that action at this time.
0 commit comments