diff --git a/packages/widget/src/components/Step/Step.tsx b/packages/widget/src/components/Step/Step.tsx index 8a5d8fd08..0904ae7f9 100644 --- a/packages/widget/src/components/Step/Step.tsx +++ b/packages/widget/src/components/Step/Step.tsx @@ -22,10 +22,13 @@ export const Step: React.FC<{ const getCardTitle = () => { switch (step.type) { case 'lifi': - if (step.includedSteps.some((step) => step.type === 'cross')) { - return t('swap.stepSwapAndBridge'); + if (step.includedSteps.every((step) => step.type === 'cross')) { + return t('swap.stepBridge'); } - return t('swap.stepSwap'); + if (step.includedSteps.every((step) => step.type === 'swap')) { + return t('swap.stepSwap'); + } + return t('swap.stepSwapAndBridge'); case 'swap': return t('swap.stepSwap'); case 'cross':