File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 88 CircularProgress ,
99} from "@mui/material" ;
1010import { AppService } from "../../services/AppService" ;
11+ import { escapeNewLine } from "../../utils/Utils" ;
1112
1213interface AdvancedTabProps { }
1314
@@ -83,7 +84,7 @@ const AdvancedTab: React.FC<AdvancedTabProps> = (): JSX.Element => {
8384 wordBreak : "break-all" ,
8485 } }
8586 >
86- { output }
87+ { escapeNewLine ( output ) }
8788 </ pre >
8889 </ Box >
8990 < form
Original file line number Diff line number Diff line change @@ -36,3 +36,5 @@ export function enoughEthBalance(
3636 const is8EthPool = rplBalance >= minimumRpl8Eth ;
3737 return is8EthPool ? ethBalance >= minimum8Eth : ethBalance >= minimum16Eth ;
3838}
39+
40+ export const escapeNewLine = ( text : string ) => text . replace ( / ( \\ n ) / g, "\n" ) ;
You can’t perform that action at this time.
0 commit comments