Rename highlight category to poi_highlight

This commit is contained in:
Ajay Ramachandran
2021-08-17 22:01:12 -04:00
parent 987d91f293
commit 5965879ed1
8 changed files with 11 additions and 12 deletions

View File

@@ -1,10 +1,9 @@
import { Category, CategoryActionType } from "../types/segments.model";
export function getCategoryActionType(category: Category): CategoryActionType {
switch (category) {
case "highlight":
if (category.startsWith("poi_")) {
return CategoryActionType.POI;
default:
} else {
return CategoryActionType.Skippable;
}
}