Skip to content

Commit

Permalink
Merge pull request #9 from herzog31/issue/8
Browse files Browse the repository at this point in the history
Change hardcoded sandbox key to be fallback only
  • Loading branch information
kathleentynan committed Feb 2, 2024
2 parents dec4c6b + 39dc012 commit 0f59516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const StoreContextProvider = ({
},
apiUrl: environmentType?.toLowerCase() === 'testing' ? TEST_URL : API_URL,
apiKey:
environmentType?.toLowerCase() === 'testing' ? SANDBOX_KEY : apiKey,
environmentType?.toLowerCase() === 'testing' && !apiKey ? SANDBOX_KEY : apiKey,
route,
searchQuery,
}),
Expand Down

0 comments on commit 0f59516

Please sign in to comment.