mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 12:07:09 +00:00
Avoids changing the transaction fee message while loading the estimation
This commit is contained in:
parent
4bf1a74b33
commit
42821c11d2
@ -21,6 +21,9 @@ export const TransactionFees = ({
|
||||
txEstimationExecutionStatus,
|
||||
}: TransactionFailTextProps): React.ReactElement | null => {
|
||||
let transactionAction
|
||||
if (txEstimationExecutionStatus === EstimationStatus.LOADING) {
|
||||
return null
|
||||
}
|
||||
if (isCreation) {
|
||||
transactionAction = 'create'
|
||||
} else if (isExecution) {
|
||||
|
@ -216,16 +216,18 @@ export const ReviewRemoveOwnerModal = ({
|
||||
isTransactionExecution={isExecution}
|
||||
/>
|
||||
|
||||
<Block className={classes.gasCostsContainer}>
|
||||
<TransactionFees
|
||||
gasCostFormatted={gasCostFormatted}
|
||||
isExecution={isExecution}
|
||||
isCreation={isCreation}
|
||||
isOffChainSignature={isOffChainSignature}
|
||||
txEstimationExecutionStatus={txEstimationExecutionStatus}
|
||||
/>
|
||||
</Block>
|
||||
<Hairline />
|
||||
{txEstimationExecutionStatus === EstimationStatus.LOADING ? null : (
|
||||
<Block className={classes.gasCostsContainer}>
|
||||
<TransactionFees
|
||||
gasCostFormatted={gasCostFormatted}
|
||||
isExecution={isExecution}
|
||||
isCreation={isCreation}
|
||||
isOffChainSignature={isOffChainSignature}
|
||||
txEstimationExecutionStatus={txEstimationExecutionStatus}
|
||||
/>
|
||||
<Hairline />
|
||||
</Block>
|
||||
)}
|
||||
<Row align="center" className={classes.buttonRow}>
|
||||
<Button minHeight={42} minWidth={140} onClick={onClickBack}>
|
||||
Back
|
||||
|
Loading…
x
Reference in New Issue
Block a user