Explorar o código

fix alert message

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
eb5f915ffa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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')}