Update docs.

This commit is contained in:
Spencer Ofwiti
2021-06-14 14:28:53 +03:00
parent 7923c63aa8
commit 4ed3d108cb
94 changed files with 10372 additions and 2785 deletions

View File

@@ -1382,7 +1382,7 @@ export class MockBackendInterceptor implements HttpInterceptor {
const queriedAreaName: AreaName = areaNames.find((areaName) =>
areaName.locations.includes(stringFromUrl())
);
return ok(queriedAreaName.name);
return ok(queriedAreaName.name || 'other');
}
function getAreaTypes(): Observable<HttpResponse<any>> {
@@ -1394,7 +1394,7 @@ export class MockBackendInterceptor implements HttpInterceptor {
const queriedAreaType: AreaType = areaTypes.find((areaType) =>
areaType.area.includes(stringFromUrl())
);
return ok(queriedAreaType.name);
return ok(queriedAreaType.name || 'other');
}
function getCategories(): Observable<HttpResponse<any>> {
@@ -1406,7 +1406,7 @@ export class MockBackendInterceptor implements HttpInterceptor {
const queriedCategory: Category = categories.find((category) =>
category.products.includes(stringFromUrl())
);
return ok(queriedCategory.name);
return ok(queriedCategory.name || 'other');
}
function getGenders(): Observable<HttpResponse<any>> {