Skip to content

Commit 57ea861

Browse files
Review comments
1 parent 9c7a80e commit 57ea861

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

plugin/src/utils/validation.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ function validatePushNotificationOptions(options: CustomerIOPluginPushNotificati
114114

115115
let isValid = true;
116116

117-
if (options.appGroupId !== undefined) {
118-
isValid = validateString(options.appGroupId, 'appGroupId', context) && isValid;
119-
if (isValid && options.appGroupId !== undefined && !options.appGroupId.startsWith('group.')) {
120-
logger.warn(`${context}: appGroupId "${options.appGroupId}" does not start with "group." — ensure this matches your Apple App Group entitlement.`);
117+
const appGroupId = options.appGroupId;
118+
if (appGroupId !== undefined) {
119+
isValid = validateString(appGroupId, 'appGroupId', context) && isValid;
120+
if (isValid && !appGroupId.startsWith('group.')) {
121+
logger.warn(`${context}: appGroupId "${appGroupId}" does not start with "group." — ensure this matches your Apple App Group entitlement.`);
121122
}
122123
}
123124

0 commit comments

Comments
 (0)