mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Changed networks tab to explicitly pass in false and fix implicit type casting
This commit is contained in:
parent
b76943ea18
commit
c2d5bd01c4
@ -217,8 +217,8 @@ export default function EditGasDisplay({
|
||||
hasGasErrors === false &&
|
||||
supportsEIP1559 && (
|
||||
<GasTiming
|
||||
maxFeePerGas={maxFeePerGas}
|
||||
maxPriorityFeePerGas={maxPriorityFeePerGas}
|
||||
maxFeePerGas={maxFeePerGas.toString()}
|
||||
maxPriorityFeePerGas={maxPriorityFeePerGas.toString()}
|
||||
gasWarnings={gasWarnings}
|
||||
/>
|
||||
)
|
||||
|
@ -90,8 +90,8 @@ const GasDetailsItem = ({ userAcknowledgedGasMissing = false }) => {
|
||||
}
|
||||
subTitle={
|
||||
<GasTiming
|
||||
maxPriorityFeePerGas={maxPriorityFeePerGas}
|
||||
maxFeePerGas={maxFeePerGas}
|
||||
maxPriorityFeePerGas={maxPriorityFeePerGas.toString()}
|
||||
maxFeePerGas={maxFeePerGas.toString()}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
@ -417,7 +417,7 @@ export default class ConfirmTransactionBase extends Component {
|
||||
<div className="custom-nonce-input">
|
||||
<TextField
|
||||
type="number"
|
||||
min=0
|
||||
min={0}
|
||||
placeholder={
|
||||
typeof nextNonce === 'number' ? nextNonce.toString() : null
|
||||
}
|
||||
@ -546,10 +546,10 @@ export default class ConfirmTransactionBase extends Component {
|
||||
maxPriorityFeePerGas={hexWEIToDecGWEI(
|
||||
maxPriorityFeePerGas ||
|
||||
txData.txParams.maxPriorityFeePerGas,
|
||||
)}
|
||||
).toString()}
|
||||
maxFeePerGas={hexWEIToDecGWEI(
|
||||
maxFeePerGas || txData.txParams.maxFeePerGas,
|
||||
)}
|
||||
).toString()}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
@ -342,6 +342,10 @@ class SettingsPage extends PureComponent {
|
||||
path={ADD_NETWORK_ROUTE}
|
||||
render={() => <NetworksTab addNewNetwork />}
|
||||
/>
|
||||
<Route
|
||||
path={NETWORKS_ROUTE}
|
||||
render={() => <NetworksTab addNewNetwork={false} />}
|
||||
/>
|
||||
<Route path={NETWORKS_ROUTE} component={NetworksTab} />
|
||||
<Route exact path={SECURITY_ROUTE} component={SecurityTab} />
|
||||
<Route exact path={EXPERIMENTAL_ROUTE} component={ExperimentalTab} />
|
||||
|
Loading…
Reference in New Issue
Block a user