Odd issue with match.oneOf, its throwing an error for no reason on ‘stripeQuantity’ and ‘stripeBalance’?
Code fragment:
export function getEGSoption(entityId, option) {
if (checkEntity(entityId)) {
console.log(`entityId: ${entityId}; option: ${option}`);
try {
check(option, Match.OneOf(
'name',
'hasRepo', 'repoCode',
'hasFin', 'finGuid',
'hasLog', 'logGuid',
'hasStripe',
'stripeCustomerId', 'stripeSubscriptionId',
'stripeSubscriptionItemId', 'stripeSubscriptionStatus',
'stripeQuantity, stripeBalance',
));
} catch (e) {
console.log(e);
}
return getEntity(entityId).entityGeneralSettings[option];
}
}
Stacktrace
Anyone have any ideas?