force poi_highlight to be type POI

This commit is contained in:
Michael C 2022-02-13 16:11:17 -05:00
parent a3ddbef38e
commit 4da3c2d049
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4

View file

@ -106,6 +106,7 @@ type validLockArray = { category: Category, actionType: ActionType }[];
const createLockArray = (categories: Category[], actionTypes: ActionType[]): validLockArray => {
const validLocks: validLockArray = [];
categories.forEach(category => {
if (category === "poi_highlight") validLocks.push({ category, actionType: ActionType.Poi });
actionTypes.forEach(actionType => {
if (isValidCategoryActionPair(category, actionType)) {
validLocks.push({ category, actionType });