File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
WooCommerce/Classes/ViewRelated/Dashboard Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ private extension DashboardViewController {
189189
190190 func showHeader( animated: Bool ) {
191191 if animated {
192- animateHeaderVisibility {
193- self . showHeaderWithoutAnimation ( )
192+ animateHeaderVisibility { [ weak self ] in
193+ self ? . showHeaderWithoutAnimation ( )
194194 }
195195 } else {
196196 showHeaderWithoutAnimation ( )
@@ -199,8 +199,8 @@ private extension DashboardViewController {
199199
200200 func hideHeader( animated: Bool ) {
201201 if animated {
202- animateHeaderVisibility {
203- self . hideHeaderWithoutAnimation ( )
202+ animateHeaderVisibility { [ weak self ] in
203+ self ? . hideHeaderWithoutAnimation ( )
204204 }
205205 } else {
206206 hideHeaderWithoutAnimation ( )
You can’t perform that action at this time.
0 commit comments