diff --git a/src/pages/[platform]/build-a-backend/functions/examples/user-attribute-validation/index.mdx b/src/pages/[platform]/build-a-backend/functions/examples/user-attribute-validation/index.mdx index b284fac20bb..152142404f2 100644 --- a/src/pages/[platform]/build-a-backend/functions/examples/user-attribute-validation/index.mdx +++ b/src/pages/[platform]/build-a-backend/functions/examples/user-attribute-validation/index.mdx @@ -50,7 +50,7 @@ import type { PreSignUpTriggerHandler } from "aws-lambda" function isOlderThan(date: Date, age: number) { const comparison = new Date() comparison.setFullYear(comparison.getFullYear() - age) - return date.getTime() > comparison.getTime() + return date.getTime() <= comparison.getTime() } export const handler: PreSignUpTriggerHandler = async (event) => {