Skip to content

Commit

Permalink
fix: revert LIVE-13088 and a fix LIVE-13131 (#7180) (#7187)
Browse files Browse the repository at this point in the history
add checks instead of replace checks
  • Loading branch information
CremaFR committed Jun 25, 2024
1 parent ca7a49a commit a8a88fe
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Root: NonNullable<EvmFamily["sendAmountFields"]>["component"] = props => {
* If no gasOptions available, this means this currency does not have a
* gasTracker. Hence, we do not display the fee fields.
*/
if (!transaction.gasOptions) {
if (!gasOptions || !transaction.gasOptions) {
return null;
}

Expand All @@ -109,11 +109,7 @@ const Root: NonNullable<EvmFamily["sendAmountFields"]>["component"] = props => {
)
) : (
<>
<SelectFeeStrategy
gasOptions={transaction.gasOptions}
onClick={onFeeStrategyClick}
{...props}
/>
<SelectFeeStrategy gasOptions={gasOptions} onClick={onFeeStrategyClick} {...props} />
</>
)}
{messageGas && (
Expand Down

0 comments on commit a8a88fe

Please sign in to comment.