Skip to content

Commit 51b93d9

Browse files
committed
chore(suite): temporarily remove eip1559 levels from frontend
1 parent 7ab8b06 commit 51b93d9

File tree

1 file changed

+8
-4
lines changed
  • packages/suite/src/components/wallet/Fees

1 file changed

+8
-4
lines changed

packages/suite/src/components/wallet/Fees/Fees.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ const FEE_LEVELS_TRANSLATIONS: Record<FeeLevel['label'], TranslationKey> = {
4848
} as const;
4949

5050
const buildFeeOptions = (levels: FeeLevel[]) =>
51-
levels.map(({ label }) => ({
52-
label: <Translation id={FEE_LEVELS_TRANSLATIONS[label]} />,
53-
value: label,
54-
}));
51+
levels
52+
.filter(l => l.ethFeeType !== 'eip1559') //TODO: remove this when frontend for eip1559 is implemented
53+
.map(({ label }) => ({
54+
label: <Translation id={FEE_LEVELS_TRANSLATIONS[label]} />,
55+
value: label,
56+
}));
5557

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

99+
console.log('feeOptions', feeOptions);
100+
97101
const shouldAnimateNormalFee = !isCustomLevel;
98102

99103
return (

0 commit comments

Comments
 (0)