From 39dc012e746b8eaa39afd1da5e1b59e2572774d8 Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Tue, 30 Jan 2024 10:53:16 +0100 Subject: [PATCH] Change hardcoded sandbox key to be fallback only --- src/context/store.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/store.tsx b/src/context/store.tsx index 9899b5f..cc5a5b1 100644 --- a/src/context/store.tsx +++ b/src/context/store.tsx @@ -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, }),