Skip to content

Commit

Permalink
Fix likes counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
antrix1989 authored Nov 2, 2017
1 parent f7ea3e3 commit 8e06f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/MWPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ - (void)update
_likesButton.selected = likedByMe;

//Update likes container
NSUInteger *likes = [_fullscreenPhotoDelegate likesCount:_currentPageIndex];
NSUInteger likes = [_fullscreenPhotoDelegate likesCount:_currentPageIndex];
if (likes > 0) {
NSString *likesWord = likes == 1 ? @"like" : @"likes";
_likesLabel.text = [NSString stringWithFormat:@"%d %@", likes, likesWord];
Expand Down

0 comments on commit 8e06f04

Please sign in to comment.