@@ -30,7 +30,7 @@ import {
3030} from 'src/utils/getMaxAmountAvailableToSupply' ;
3131import { calculateHFAfterSupply } from 'src/utils/hfUtils' ;
3232import { isFeatureEnabled } from 'src/utils/marketsAndNetworksConfig' ;
33- import { roundToTokenDecimals } from 'src/utils/utils' ;
33+ import { replaceUnderscoresWithSpaces , roundToTokenDecimals } from 'src/utils/utils' ;
3434import { useShallow } from 'zustand/shallow' ;
3535
3636import {
@@ -372,7 +372,8 @@ export const SupplyModalContent = React.memo(
372372 text = {
373373 selectedEmodeId === 0
374374 ? t `Disabled`
375- : eModes [ selectedEmodeId ] ?. label || t `Category ${ selectedEmodeId } `
375+ : replaceUnderscoresWithSpaces ( eModes [ selectedEmodeId ] ?. label ) ||
376+ t `Category ${ selectedEmodeId } `
376377 }
377378 />
378379 ) }
@@ -391,8 +392,9 @@ export const SupplyModalContent = React.memo(
391392 < Typography variant = "caption" >
392393 { user . userEmodeCategoryId === 0 ? (
393394 < Trans >
394- This transaction will enable E-Mode ({ eModes [ selectedEmodeId ] ?. label } ). Borrowing
395- will be restricted to assets within this category.
395+ This transaction will enable E-Mode (
396+ { replaceUnderscoresWithSpaces ( eModes [ selectedEmodeId ] ?. label ) } ). Borrowing will be
397+ restricted to assets within this category.
396398 </ Trans >
397399 ) : selectedEmodeId === 0 ? (
398400 < Trans >
@@ -401,9 +403,10 @@ export const SupplyModalContent = React.memo(
401403 </ Trans >
402404 ) : (
403405 < Trans >
404- This transaction will switch E-Mode from { eModes [ user . userEmodeCategoryId ] ?. label } { ' ' }
405- to { eModes [ selectedEmodeId ] ?. label } . Borrowing will be restricted to assets within
406- the new category.
406+ This transaction will switch E-Mode from{ ' ' }
407+ { replaceUnderscoresWithSpaces ( eModes [ user . userEmodeCategoryId ] ?. label ) } to{ ' ' }
408+ { replaceUnderscoresWithSpaces ( eModes [ selectedEmodeId ] ?. label ) } . Borrowing will be
409+ restricted to assets within the new category.
407410 </ Trans >
408411 ) }
409412 { supplyUnWrapped && (
0 commit comments