Fix PR feedback

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-05-06 09:17:26 +02:00
parent 87b7aece4c
commit 06ad93aa09

View File

@ -120,10 +120,7 @@ export class Admin extends React.Component {
getStrapiLatestReleaseSucceeded,
} = this.props;
if (!STRAPI_ADMIN_UPDATE_NOTIFICATION === 'true') {
return;
}
if (STRAPI_ADMIN_UPDATE_NOTIFICATION === 'true') {
try {
const {
data: { tag_name },
@ -155,6 +152,7 @@ export class Admin extends React.Component {
} catch (err) {
// Silent
}
}
};
hasApluginNotReady = props => {