diff --git a/app/soapbox/features/developers/service-worker-info.tsx b/app/soapbox/features/developers/service-worker-info.tsx index 18800f1de..9b7751587 100644 --- a/app/soapbox/features/developers/service-worker-info.tsx +++ b/app/soapbox/features/developers/service-worker-info.tsx @@ -50,10 +50,10 @@ const ServiceWorkerInfo: React.FC = () => { const url = registration?.active?.scriptURL; const getState = () => { - if (registration?.active) { - return 'active'; - } else if (registration?.waiting) { + if (registration?.waiting) { return 'pending'; + } else if (registration?.active) { + return 'active'; } else { return 'inactive'; } @@ -74,13 +74,6 @@ const ServiceWorkerInfo: React.FC = () => { defaultMessage='Unavailable' /> ); - } else if (registration?.active) { - return ( - - ); } else if (registration?.waiting) { return ( = () => { defaultMessage='Waiting' /> ); + } else if (registration?.active) { + return ( + + ); } else { return (