Skip to content

Commit

Permalink
fix update check...
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermarian committed Jan 1, 2020
1 parent 3e4eedf commit 42f983f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-ui/javascript/src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export const actionLoadEvergreen = (t) => {
toast.update(toastId,{ render: t('toasts.evergreen.fetching') });
return fetchEvergreenLatestRelease()
.then(latest => {
if (Date.parse(latest.published_at) > Date.parse(infos.timestamp)) {
if (latest.name !== infos.version && Date.parse(latest.published_at) > Date.parse(infos.timestamp)) {
toast.update(toastId, { type: toast.TYPE.SUCCESS, render: <><p>{t('toasts.evergreen.fetched.newRelease.label')}</p><p><a href={latest.html_url}>{t('toasts.evergreen.fetched.newRelease.link', { version: latest.name })}</a></p></> });
} else {
toast.update(toastId, { type: toast.TYPE.INFO, render: t('toasts.evergreen.fetched.upToDate', { version: infos.version }), autoClose: 5000 });
Expand Down

0 comments on commit 42f983f

Please sign in to comment.