Skip to content

Commit

Permalink
chore(suite): temporarily remove eip1559 levels from frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Jan 17, 2025
1 parent 7ab8b06 commit 51b93d9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/suite/src/components/wallet/Fees/Fees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ const FEE_LEVELS_TRANSLATIONS: Record<FeeLevel['label'], TranslationKey> = {
} as const;

const buildFeeOptions = (levels: FeeLevel[]) =>
levels.map(({ label }) => ({
label: <Translation id={FEE_LEVELS_TRANSLATIONS[label]} />,
value: label,
}));
levels
.filter(l => l.ethFeeType !== 'eip1559') //TODO: remove this when frontend for eip1559 is implemented
.map(({ label }) => ({
label: <Translation id={FEE_LEVELS_TRANSLATIONS[label]} />,
value: label,
}));

export interface FeesProps<TFieldValues extends FormState> {
account: Account;
Expand Down Expand Up @@ -94,6 +96,8 @@ export const Fees = <TFieldValues extends FormState>({
// Solana has only `normal` fee level, so we do not display any feeOptions since there is nothing to choose from
const feeOptions = networkType === 'solana' ? [] : buildFeeOptions(feeInfo.levels);

console.log('feeOptions', feeOptions);

const shouldAnimateNormalFee = !isCustomLevel;

return (
Expand Down

0 comments on commit 51b93d9

Please sign in to comment.