Fix formula from going all Walter White

Fixed

-- 
Christoffer Winterkvist
Swift Developer

Hyper
mobil +47 413 99 880
www.hyper.no <http://www.hyper.no/>
twitter.com/hyperoslo <http://twitter.com/hyperoslo>
facebook.com/hyperoslo <http://facebook.com/hyperoslo>
> On Dec 5, 2014, at 11:17, Elvis Nuñez <notifications@github.com> wrote:
> 
> In Source/HYPFormsCollectionViewDataSource.m:
> 
> > @@ -650,28 +651,27 @@ - (void)updateTargets:(NSArray *)targets
> >                  }
> >  
> >              } else if (value) {
> > -
> > -                if (value && [value isKindOfClass:[NSString class]]) {
> > -                    [values addEntriesFromDictionary:@{fieldID : value}];
> > +                if ([value isKindOfClass:[NSString class]]) {
> > +                    if (isNumericField) {
> > +                        NSString *stringValue = value;
> > +                        if (stringValue.length == 0) stringValue = @"0";
> You could remove NSString *stringValue = value;
> 
> And do [stringValue length], we are making the check that it's an NSString, so should be safe
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/hyperoslo/HYPForms/pull/106/files#r21364612>.
>