Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jun 11, 2024
1 parent ac83432 commit f192a16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/__swaps__/screens/Swap/components/GasPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,14 @@ function GasSettingInput({

const selectWeiToGwei = (s: string | undefined) => s && weiToGwei(s);

function CurrentBaseFeeSlot({ baseFee, gasTrend }: { baseFee?: string; gasTrend?: string }) {
function CurrentBaseFeeSlot({ baseFee, gasTrend = 'notrend' }: { baseFee?: string; gasTrend?: keyof typeof GAS_TRENDS }) {
const { isDarkMode } = useColorMode();
const { navigate } = useNavigation();

const label = useForegroundColor('label');
const labelSecondary = useForegroundColor('labelSecondary');

const chainId = useSwapsStore(s => s.inputAsset?.chainId || ChainId.mainnet);
const { data: baseFee } = useBaseFee({ chainId, select: selectWeiToGwei });
const { data: gasTrend = 'notrend' } = useGasTrend({ chainId });

const trendType = 'currentBaseFee' + upperFirst(gasTrend);

const isEIP1559 = useIsChainEIP1559(chainId);
Expand Down

0 comments on commit f192a16

Please sign in to comment.