diff --git a/LNPopupController/LNPopupController/Private/LNPopupController.m b/LNPopupController/LNPopupController/Private/LNPopupController.m index f6215098..0b54a945 100644 --- a/LNPopupController/LNPopupController/Private/LNPopupController.m +++ b/LNPopupController/LNPopupController/Private/LNPopupController.m @@ -644,7 +644,7 @@ - (void)presentPopupBarAnimated:(BOOL)animated openPopup:(BOOL)open completion:( } } completion:^(BOOL finished) { - if(completionBlock != nil) + if(completionBlock != nil && !open) { completionBlock(); } @@ -658,8 +658,7 @@ - (void)presentPopupBarAnimated:(BOOL)animated openPopup:(BOOL)open completion:( { [self openPopupAnimated:animated completion:completionBlock]; } - - if(completionBlock != nil) + else if(completionBlock != nil) { completionBlock(); }