diff --git a/src/util.ts b/src/util.ts index c6d3ddc..6352ffd 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1575,7 +1575,7 @@ export const snooLogWrapper = (logger: Logger) => { * Cached activities lose type information when deserialized so need to check properties as well to see if the object is the shape of a Submission * */ export const isSubmission = (value: any) => { - return value instanceof Submission || (value.id !== undefined && value.id.includes('t3_')) || value.name.includes('t3_'); + return value instanceof Submission || (value.id !== undefined && value.id.includes('t3_')) || value.domain !== undefined; } export const asSubmission = (value: any): value is Submission => {