Parcourir la source

fix alert message

kaori il y a 4 ans
Parent
commit
eb5f915ffa
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/app/src/components/Admin/AdminHome/AdminHome.jsx

+ 2 - 2
packages/app/src/components/Admin/AdminHome/AdminHome.jsx

@@ -42,8 +42,8 @@ class AdminHome extends React.Component {
     return (
       <Fragment>
         {
-          // not show if true
-          !isV5Compatible
+          // Alert message will be displayed in case that V5 migration has not compleated yet
+          (isV5Compatible != null && !isV5Compatible)
           && (
             <div className={`alert ${alertStyle}`}>
               {t('admin:v5_page_migration.migration_desc')}