diff --git a/public/sw.js b/public/sw.js index 29011c0d..912a9a47 100644 --- a/public/sw.js +++ b/public/sw.js @@ -9,7 +9,7 @@ workbox.setConfig({ // https://developers.google.com/web/tools/workbox/reference-docs/latest/workbox.routing#registerRoute workbox.routing.registerRoute( - // \/{0,1} will also match dev.thechaindata.comxxxyyy, but this is would not a valid suffix, so it can be use. + // \/{0,1} will also match dev.thechaindata.comxxxyyy, but this is would not a valid suffix, so it can be used. // for match dev.thechaindata.com & dev.thechaindata.com/ /(((dev|kepler)\.thechaindata\.com)|(app\.subquery\.network))\/{0,1}(?=((dashboard)|(explorer)|(profile)|(indexer)|(delegator)|(consumer)|(swap)|(studio))|\?|$).*/g, // https://developers.google.com/web/tools/workbox/reference-docs/latest/workbox.strategies diff --git a/src/containers/AppInitialProvider.tsx b/src/containers/AppInitialProvider.tsx index 6540e0ae..a7d61988 100644 --- a/src/containers/AppInitialProvider.tsx +++ b/src/containers/AppInitialProvider.tsx @@ -8,7 +8,7 @@ import { Spinner } from '@subql/components'; /** * * This is the App Initial State - * The App will initial ContractSDK, and store at global state + * The App will initial ContractSDK, and store it at the global state */ export const AppInitProvider: React.FC = ({ children }) => { const { loading: loadingContract } = useInitContracts(); diff --git a/src/containers/QueryApolloProvider.tsx b/src/containers/QueryApolloProvider.tsx index 006e76c7..072e96f1 100644 --- a/src/containers/QueryApolloProvider.tsx +++ b/src/containers/QueryApolloProvider.tsx @@ -48,7 +48,7 @@ export const networkLink = new ApolloLink((operation) => { const links = ApolloLink.from([ onError(({ graphQLErrors, operation, networkError }) => { // Filter consumer by community. - // If community link goes error, apollo-links will try until all failed. + // If community link goes in error, apollo-links will try until all failed. // So Just catch the error caused by fallback service. try { const res = operation.getContext(); @@ -66,7 +66,7 @@ const links = ApolloLink.from([ }, }); } catch { - // don't care there have errors. + // don't care if there have errors. } }), ApolloLink.split(