feat: handle error when the endpoint is not working

This commit is contained in:
Pablo Lara
2024-07-30 17:24:42 +02:00
+1 -1
View File
@@ -8,7 +8,7 @@ export const getProvider = async () => {
if (!key) return undefined;
try {
const providers = await fetch(`${key}/api/providers`);
const providers = await fetch(`${key}/api/proiders`);
const data = await providers.json();