diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/PublishSettingsViewModel.kt b/WordPress/src/main/java/org/wordpress/android/ui/posts/PublishSettingsViewModel.kt index 7366cc610df0..0c3a87edcbef 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/PublishSettingsViewModel.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/PublishSettingsViewModel.kt @@ -73,8 +73,7 @@ constructor( editPostRepository = postRepository val startCalendar = postRepository?.takeIf { it.hasPost() }?.let { getCurrentPublishDateAsCalendar(it) - } ?: - localeManagerWrapper.getCurrentCalendar() + } ?: localeManagerWrapper.getCurrentCalendar() updateDateAndTimeFromCalendar(startCalendar) onPostStatusChanged(postRepository?.getPost()) }