@@ -15,10 +15,10 @@ export function EnvironmentUI(props: EnvironmentProps) {
15
15
const currentProvider = props . providers . providerList . find ( ( exEnv ) => exEnv . name === props . selectedEnv )
16
16
const bridges = {
17
17
'L2 - Optimism' : 'https://app.optimism.io/bridge/deposit' ,
18
- 'L2 - Arbitrum One ' : 'https://bridge.arbitrum.io/'
18
+ 'L2 - Arbitrum' : 'https://bridge.arbitrum.io/'
19
19
}
20
20
21
- const isL2 = ( providerDisplayName : string ) => providerDisplayName === 'Optimism Provider ' || providerDisplayName === 'Arbitrum One Provider '
21
+ const isL2 = ( providerDisplayName : string ) => providerDisplayName === 'L2 - Optimism ' || providerDisplayName === 'L2 - Arbitrum '
22
22
return (
23
23
< div className = "udapp_crow" >
24
24
< label id = "selectExEnv" className = "udapp_settingsLabel" >
@@ -38,16 +38,16 @@ export function EnvironmentUI(props: EnvironmentProps) {
38
38
< div className = "udapp_environment" >
39
39
< Dropdown id = "selectExEnvOptions" data-id = "settingsSelectEnvOptions" className = "udapp_selectExEnvOptions" >
40
40
< Dropdown . Toggle as = { CustomToggle } id = "dropdown-custom-components" className = "btn btn-light btn-block w-100 d-inline-block border border-dark form-control" icon = { null } >
41
- { isL2 ( currentProvider && currentProvider . displayName ) && 'L2 - ' }
41
+ { isL2 ( currentProvider && currentProvider . displayName ) }
42
42
{ currentProvider && currentProvider . displayName }
43
- { currentProvider && bridges [ currentProvider . name ] && (
43
+ { currentProvider && bridges [ currentProvider . displayName ] && (
44
44
< CustomTooltip placement = { 'right' } tooltipClasses = "text-nowrap" tooltipId = "info-recorder" tooltipText = { < FormattedMessage id = "udapp.tooltipText3" /> } >
45
45
< i
46
46
style = { { fontSize : 'medium' } }
47
47
className = { 'ml-2 fa fa-rocket-launch' }
48
48
aria-hidden = "true"
49
49
onClick = { ( ) => {
50
- window . open ( bridges [ currentProvider . name ] , '_blank' )
50
+ window . open ( bridges [ currentProvider . displayName ] , '_blank' )
51
51
} }
52
52
> </ i >
53
53
</ CustomTooltip >
@@ -63,7 +63,7 @@ export function EnvironmentUI(props: EnvironmentProps) {
63
63
data-id = { `dropdown-item-${ name } ` }
64
64
>
65
65
< span className = "" >
66
- { isL2 ( displayName ) && 'L2 - ' }
66
+ { isL2 ( displayName ) }
67
67
{ displayName }
68
68
</ span >
69
69
</ Dropdown . Item >
0 commit comments