File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
lib/features/wish_detail/widget Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class MyExpandableFab extends StatelessWidget {
4343                  onSubmit:  () =>  context.read <WishBloc >().add (const  TakeSavingEvent ()),
4444                  formKey:  formKey,
4545                  validator:  (value) {
46-                     if  (int .parse ((value).replaceAll ('.' , '' )) >  wish.getTotalSaving ()) {
46+                     if  (int .parse ((value).replaceAll ('.' , '' )) >  context. read < WishBloc >().state. wish.getTotalSaving ()) {
4747                      return  'Nominal tidak boleh melebihi total tabungan terkumpul' ;
4848                    }
4949                    return  null ;
@@ -65,7 +65,7 @@ class MyExpandableFab extends StatelessWidget {
6565                onSubmit:  () =>  context.read <WishBloc >().add (const  AddSavingEvent ()),
6666                formKey:  formKey,
6767                validator:  (value) {
68-                   if  (int .parse ((value).replaceAll ('.' , '' )) >  wish.savingTarget -  wish.getTotalSaving ()) {
68+                   if  (int .parse ((value).replaceAll ('.' , '' )) >  wish.savingTarget -  context. read < WishBloc >().state. wish.getTotalSaving ()) {
6969                    return  'Nominal yang ditabung melebihi kekurangan' ;
7070                  }
7171                  return  null ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments