diff --git a/packages/app/src/hooks/apollo/useCreateMongoDbApolloClient.ts b/packages/app/src/hooks/apollo/useCreateMongoDbApolloClient.ts index 58c4730a..05916401 100644 --- a/packages/app/src/hooks/apollo/useCreateMongoDbApolloClient.ts +++ b/packages/app/src/hooks/apollo/useCreateMongoDbApolloClient.ts @@ -46,7 +46,7 @@ export const useCreateMongoDbApolloClient = (): ApolloClient | undefined => const httpLink = new HttpLink({ uri: mongoDbUri, - fetch: async (uri, options) => { + fetch: async (url, options) => { const accessToken = await getValidAccessToken(); if (!options) { options = {}; @@ -55,7 +55,7 @@ export const useCreateMongoDbApolloClient = (): ApolloClient | undefined => options.headers = {}; } (options.headers as Record).Authorization = `Bearer ${accessToken}`; - return fetch(uri, options); + return fetch(url as string, options); }, }); diff --git a/packages/app/src/lib/totalDurationInSeconds.ts b/packages/app/src/lib/totalDurationInSeconds.ts index 24d535fe..7a78695f 100644 --- a/packages/app/src/lib/totalDurationInSeconds.ts +++ b/packages/app/src/lib/totalDurationInSeconds.ts @@ -3,10 +3,6 @@ import { Frequency } from '../models/constants'; export const totalDurationInSeconds = (duration: number, frequency: Frequency): number => { if (frequency === Frequency.OneTime) { return 0; - } else if (frequency === Frequency.Daily) { - return duration * 24 * 60 * 60; - } else if (frequency === Frequency.Weekly) { - return duration * 7 * 24 * 60 * 60; } const now = new Date(); diff --git a/packages/app/src/utils/index.tsx b/packages/app/src/utils/index.tsx index c940e09e..38b9b0f0 100644 --- a/packages/app/src/utils/index.tsx +++ b/packages/app/src/utils/index.tsx @@ -84,13 +84,7 @@ export function getDonateStyles(state: ButtonState): DonateStylesResult { export function getFrequencyPlural(frequency: Frequency) { switch (frequency) { - case 'Daily': - return 'Days'; - case 'Weekly': - return 'Weeks'; case 'Monthly': return 'Months'; - case 'Yearly': - return 'Years'; } } diff --git a/packages/app/web/shim.ts b/packages/app/web/shim.ts index fe88bb1c..4e8c842f 100644 --- a/packages/app/web/shim.ts +++ b/packages/app/web/shim.ts @@ -1,4 +1,4 @@ // fix uniswap sdk issue -globalThis.Browser = { +(globalThis as any).Browser = { T: () => {}, };