Remove unused string condition

This commit is contained in:
Lourens Schep 2022-05-09 14:36:51 -03:00
parent 65da6a8562
commit 99eb80d811
1 changed files with 1 additions and 4 deletions

View File

@ -246,10 +246,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
if ( currentLocation !== homescreenLocation ) {
// Ensure that if the user is trying to get to the task list they can see it even if
// it was dismissed.
if (
setupTaskListHidden === 'no' ||
setupTaskListHidden === false
) {
if ( setupTaskListHidden === false ) {
redirectToHomeScreen();
} else {
unhideTaskList( 'setup' ).then( redirectToHomeScreen );