diff --git a/features/ipfs/update-promt-banner/update-promt-banner.tsx b/features/ipfs/update-promt-banner/update-promt-banner.tsx
index 25add3646..ea1d9ad1c 100644
--- a/features/ipfs/update-promt-banner/update-promt-banner.tsx
+++ b/features/ipfs/update-promt-banner/update-promt-banner.tsx
@@ -22,15 +22,19 @@ const warningContent = ({
isIpfs,
}: WarningContentOptions) => {
switch (true) {
+ // not veryfiable, only for IPFS
case isIpfs && isNotVerifiable:
return {
content: (
- We could not verify security of this IPFS version
+ This IPFS version can’t be verified
+
+ Please try again later
),
- canClose: true,
+ canClose: false,
};
+ // IPFS ver is less than leastSafeVersion, but new version is available
case isIpfs && isVersionUnsafe && isUpdateAvailable:
return {
content: (
@@ -40,25 +44,26 @@ const warningContent = ({
),
canClose: false,
};
- case isVersionUnsafe && !isUpdateAvailable:
+ // we can show this banner on both infra and IPFS
+ case isVersionUnsafe && (!isIpfs || !isUpdateAvailable):
return {
content: (
- The staking widget is currently down. Resolving is in progress
+ The Lido staking widget is currently down. A fix is in progress
),
canClose: false,
showTwitterLink: true,
};
+ // outdated IPFS
case isIpfs && isUpdateAvailable:
return {
content: (
- This is not the most recent version of IPFS Widget
+ This is not the most up to date version of the IPFS widget
- Note that you may not find new features or functionality in this
- version
+ Please note that the functionality of this version may be lacking
),
@@ -101,7 +106,7 @@ export const UpgradePromtBanner = () => {
rel="noopener noreferrer"
>
)}
@@ -112,7 +117,7 @@ export const UpgradePromtBanner = () => {
rel="noopener noreferrer"
>
)}
@@ -124,7 +129,7 @@ export const UpgradePromtBanner = () => {
variant="outlined"
onClick={() => setConditionsAccepted(true)}
>
- Accept possible issues and proceed
+ Accept the possible issues and proceed
)}
diff --git a/features/ipfs/update-promt-banner/use-version-check.ts b/features/ipfs/update-promt-banner/use-version-check.ts
index 6c6f353fd..29213736a 100644
--- a/features/ipfs/update-promt-banner/use-version-check.ts
+++ b/features/ipfs/update-promt-banner/use-version-check.ts
@@ -10,6 +10,8 @@ import { STRATEGY_IMMUTABLE, STRATEGY_LAZY } from 'utils/swrStrategies';
import buildInfo from 'build-info.json';
import { useClientConfig } from 'providers/client-config';
+export const NO_SAFE_VERSION = 'NONE_AVAILABLE';
+
type EnsHashCheckReturn = {
cid: string;
ens?: string;
@@ -118,12 +120,12 @@ export const useVersionCheck = () => {
remoteVersionSWR.data &&
currentCidSWR.data &&
remoteVersionSWR.data.cid !== currentCidSWR.data &&
- remoteVersionSWR.data.leastSafeVersion !== 'none',
+ remoteVersionSWR.data.leastSafeVersion !== NO_SAFE_VERSION,
);
const isVersionUnsafe = Boolean(
remoteVersionSWR.data?.leastSafeVersion &&
- (remoteVersionSWR.data.leastSafeVersion === 'none' ||
+ (remoteVersionSWR.data.leastSafeVersion === NO_SAFE_VERSION ||
isVersionLess(
buildInfo.version,
remoteVersionSWR.data.leastSafeVersion,