fix .startsWith check

This commit is contained in:
martin-mfg
2025-11-20 18:20:13 +01:00
parent a073740429
commit 88ba657065
+1 -1
View File
@@ -15,7 +15,7 @@ cachedAxios.interceptors.request.use(
const params = new URL(config.url).entries || {};
if (
params.username === 'anuraghazra' ||
params.repo.startsWith('anuraghazra/')
(params.repo && params.repo.startsWith('anuraghazra/'))
) {
// Return a promise that resolves with a mocked response
return Promise.resolve({