diff --git a/TimeUse+/Info.plist b/TimeUse+/Info.plist index 1ad363bd01df793b10464036fbd5fcd739f4858e..5bfcfef0315b3e1c531f8ac9058ab2caa049d45e 100644 --- a/TimeUse+/Info.plist +++ b/TimeUse+/Info.plist @@ -19,7 +19,7 @@ <key>CFBundleShortVersionString</key> <string>$(MARKETING_VERSION)</string> <key>CFBundleVersion</key> - <string>48</string> + <string>49</string> <key>LSApplicationQueriesSchemes</key> <array> <string>googlechromes</string> diff --git a/TimeUse+/Screens/Home/Cells/ExpenditureTrackCell/ExpenditureTrackCell.swift b/TimeUse+/Screens/Home/Cells/ExpenditureTrackCell/ExpenditureTrackCell.swift index eab9e2735bf23feafd26c80b82ebece21d322ed0..0ba5731baebf77c6dc9ddc4d1a4a4a0c95d6913c 100644 --- a/TimeUse+/Screens/Home/Cells/ExpenditureTrackCell/ExpenditureTrackCell.swift +++ b/TimeUse+/Screens/Home/Cells/ExpenditureTrackCell/ExpenditureTrackCell.swift @@ -31,8 +31,8 @@ class ExpenditureTrackCell: UICollectionViewCell { let activity = TemporaryEvent.shared.activities.first { (activity) -> Bool in return activity.id == _parent.activity.id } - if let attribute = activity?.attribute, _parent.temporaryAttribute.expenditures.isEmpty { - selectItem(attribute.expenditures.first!, titles: itemTitles) + if let attribute = activity?.attribute, let title = attribute.expenditures.first, _parent.temporaryAttribute.expenditures.isEmpty { + selectItem(title, titles: itemTitles) } else if !_parent.temporaryAttribute.expenditures.isEmpty { selectItem(_parent.temporaryAttribute.expenditures.first!, titles: itemTitles) } else {