Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Update src/hooks/useCreateGQLClient/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Khelif <[email protected]>
  • Loading branch information
SupaJoon and khelif96 authored Mar 22, 2024
1 parent 2f15e3d commit 6213cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCreateGQLClient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useCreateGQLCLient = (): ApolloClient<NormalizedCacheObject> => {
const [gqlClient, setGQLClient] = useState<any>();

useEffect(() => {
fetchWithRetry(getGQLUrl(), secretFieldsReq)
fetchWithRetry<SecretFieldsQuery>(getGQLUrl(), secretFieldsReq)
.then(({ data }) => {
dispatchAuthenticated();
setSecretFields(data?.spruceConfig?.secretFields);
Expand Down

0 comments on commit 6213cdb

Please sign in to comment.