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:19, Elvis Nuñez <notifications@github.com> wrote:
> 
> In Source/HYPFormsCollectionViewDataSource.m:
> 
> >                  } else {
> >                      if ([value respondsToSelector:NSSelectorFromString(@"stringValue")]) {
> >                          [self.formsManager.values setObject:[value stringValue] forKey:field.fieldID];
> >                          [values addEntriesFromDictionary:@{fieldID : [value stringValue]}];
> >                      } else {
> >                          [self.formsManager.values setObject:@"" forKey:field.fieldID];
> > -                        if (field.type == HYPFormFieldTypeFloat || field.type == HYPFormFieldTypeNumber) {
> > -                            [values addEntriesFromDictionary:@{fieldID : @"0"}];
> > -                        } else {
> > -                            [values addEntriesFromDictionary:@{fieldID : @""}];
> > -                        }
> > +                        NSString *defaultEmptyValue = (isNumericField) ? @"0" : @"";
> You can move NSString *defaultEmptyValue = (isNumericField) ? @"0" : @""; bellow the declaration of isNumericField so we don't have it in two places.
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/hyperoslo/HYPForms/pull/106/files#r21364709>.
>