This repository was archived by the owner on Oct 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ export const ChangePoolDialog: FC<ChangePoolDialogProps> = ({
8585 < >
8686 < StyledHeading as = "h3" > Move stake confirmation</ StyledHeading >
8787 < StyledParagraph >
88- You are moving { formattedAmount } ZRX from { stakingUtils . getPoolDisplayName ( fromPool ) } to{ ' ' }
88+ You are moving { formattedAmount } ZRX{ ' ' }
89+ { fromPool && `from ${ stakingUtils . getPoolDisplayName ( fromPool ) } ` } to{ ' ' }
8990 { stakingUtils . getPoolDisplayName ( toPool ) } .
9091 </ StyledParagraph >
9192 < StyledParagraph >
@@ -148,7 +149,7 @@ export const ChangePoolDialog: FC<ChangePoolDialogProps> = ({
148149 shouldAskForConfirmation
149150 ? ( ) => setIsConfirmScreen ( true )
150151 : ( ) => {
151- onChangePool ( fromPool . poolId , toPool . poolId , zrxAmount ) ;
152+ onChangePool ( fromPool && fromPool . poolId , toPool . poolId , zrxAmount ) ;
152153 clearAndDismiss ( ) ;
153154 }
154155 }
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ type ProposalWithOrder = Proposal & {
5555
5656type TreasuryProposalWithOrder = TreasuryProposal & {
5757 order ?: number ;
58- }
58+ } ;
5959
6060const PROPOSALS = environments . isProduction ( ) ? prodProposals : stagingProposals ;
6161const ZEIP_IDS = Object . keys ( PROPOSALS ) . map ( ( idString ) => parseInt ( idString , 10 ) ) ;
You can’t perform that action at this time.
0 commit comments