File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,9 +122,11 @@ export const AuthLdapPage = () => {
122122 </ Button >
123123 </ FormItem >
124124 </ FormLayoutGroup >
125- < Button className = { styles . contactButton } href = { authContact } mode = 'link' >
126- { t ( 'Contact Support' ) }
127- </ Button >
125+ < ConditionalRender conditions = { [ ! ! authContact , authContact != 'example.com' ] } >
126+ < Button className = { styles . contactButton } href = { authContact } mode = 'link' >
127+ { t ( 'Contact Support' ) }
128+ </ Button >
129+ </ ConditionalRender >
128130 </ form >
129131 </ div >
130132 </ Group >
Original file line number Diff line number Diff line change 1- export const toSentenceCase = ( str : string ) : string => str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 ) . toLowerCase ( )
1+ export const toSentenceCase = ( str : string ) : string => {
2+ if ( str . includes ( '@' ) ) return str
3+
4+ if ( str . includes ( '.' ) ) return str
5+
6+ return str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 ) . toLowerCase ( )
7+ }
You can’t perform that action at this time.
0 commit comments