From 8eaf4b269312c6f947ac05295527e1d8231cdce1 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:30:48 +0200 Subject: [PATCH 1/3] Update sw.js --- public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/sw.js b/public/sw.js index 29011c0d5..912a9a479 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 From e3a0e5e40d51adc6347e6975734416191fde06a8 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:31:43 +0200 Subject: [PATCH 2/3] Update AppInitialProvider.tsx --- src/containers/AppInitialProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/AppInitialProvider.tsx b/src/containers/AppInitialProvider.tsx index 6540e0aee..a7d619889 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(); From c46416522e5b206d2f0a8b4b6261f276afc97688 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:32:29 +0200 Subject: [PATCH 3/3] Update QueryApolloProvider.tsx --- src/containers/QueryApolloProvider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/QueryApolloProvider.tsx b/src/containers/QueryApolloProvider.tsx index 006e76c73..072e96f14 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(