Skip to content

Commit ae2b3f7

Browse files
committed
Merge pull request #114 from jwarmkessel/master
Fixing a bug that prevents updates to text for the All Set! page.
2 parents b0abf5f + 4e42d02 commit ae2b3f7

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

APCAppCore/APCAppCore/UI/Onboarding/SignUp/APCAllSetContentViewController.m

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,24 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
109109
switch (indexPath.row) {
110110
case APCAllSetRowActivities:
111111
{
112-
NSString *original = NSLocalizedString(@"You’ll find your list of daily surveys and tasks on the “Activities” tab. New surveys and tasks will appear over the next few weeks.",
113-
@"You’ll find your list of daily surveys and tasks on the “Activities” tab. New surveys and tasks will appear over the next few weeks.");
112+
NSString *original = NSLocalizedString(@"You’ll find your list of daily surveys and tasks on the “Activities” tab. New surveys and tasks will appear over the next few weeks.", nil);
113+
114+
cell.originalText = original;
114115

115-
if (self.textBlocks) {
116-
for (NSDictionary *textBlock in self.textBlocks) {
117-
if (textBlock[kAllSetActivitiesTextOriginal]) {
116+
if (self.textBlocks)
117+
{
118+
for (NSDictionary *textBlock in self.textBlocks)
119+
{
120+
if (textBlock[kAllSetActivitiesTextOriginal])
121+
{
118122
cell.originalText = textBlock[kAllSetActivitiesTextOriginal];
119-
} else {
120-
cell.originalText = original;
121123
}
122124

123-
if (textBlock[kAllSetActivitiesTextAdditional]) {
125+
if (textBlock[kAllSetActivitiesTextAdditional])
126+
{
124127
cell.additonalText = textBlock[kAllSetActivitiesTextAdditional];
125-
} else {
126-
cell.additonalText = nil;
127-
}
128+
}
128129
}
129-
} else {
130-
cell.originalText = original;
131130
}
132131

133132
cell.icon = [UIImage imageNamed:@"tab_activities_selected"];
@@ -136,8 +135,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
136135

137136
default:
138137
{
139-
NSString *original = NSLocalizedString(@"To see your results from surveys and tasks, check your “Dashboard” tab.",
140-
@"To see your results from surveys and tasks, check your “Dashboard” tab.");
138+
NSString *original = NSLocalizedString(@"To see your results from surveys and tasks, check your “Dashboard” tab.", nil);
141139

142140
if (self.textBlocks) {
143141
for (NSDictionary *textBlock in self.textBlocks) {

0 commit comments

Comments
 (0)