File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/Scheme/CL4R Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const CL4R = (props: IProps) => {
59
59
const [ isLocking , setIsLocking ] = React . useState ( false ) ;
60
60
const [ isApprovingToken , setIsApprovingToken ] = React . useState ( false ) ;
61
61
const [ currentTime , setCurrentTime ] = React . useState ( moment ( ) . unix ( ) ) ;
62
- const isAllowance = data [ 1 ] . gt ( new BN ( 0 ) ) ;
62
+ const isAllowance = data [ 1 ] ? .gt ( new BN ( 0 ) ) ;
63
63
const isEnoughBalance = fromWei ( data [ 2 ] ) >= lockAmount ;
64
64
const cl4Rlocks = ( data as any ) [ 0 ] . data . cl4Rlocks ;
65
65
@@ -167,7 +167,7 @@ const CL4R = (props: IProps) => {
167
167
prefix = "Starts in" ;
168
168
}
169
169
170
- if ( currentLockingBatch === Number ( schemeParams . batchesIndexCap ) ) {
170
+ if ( currentLockingBatch + 1 === Number ( schemeParams . batchesIndexCap ) ) {
171
171
prefix = "Ends in" ;
172
172
}
173
173
You can’t perform that action at this time.
0 commit comments