From 5a307061501e8fe89b87b33bc91ed15d78988aa3 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 3 Jan 2022 13:08:25 +0100 Subject: [PATCH] docs(fix): fix comparison operator from `>` to `<` --- website/docs/how-to/how-to-use-custom-strategies.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/how-to/how-to-use-custom-strategies.md b/website/docs/how-to/how-to-use-custom-strategies.md index 4a4c62a536..34d2e59a76 100644 --- a/website/docs/how-to/how-to-use-custom-strategies.md +++ b/website/docs/how-to/how-to-use-custom-strategies.md @@ -43,7 +43,7 @@ The steps to implement a custom strategy for your client depend on the kind of c } isEnabled(parameters, context) { - return Date.parse(parameters.enableAfter) > Date.now(); + return Date.parse(parameters.enableAfter) < Date.now(); } } ``` @@ -61,7 +61,7 @@ The steps to implement a custom strategy for your client depend on the kind of c } isEnabled(parameters, context) { - return Date.parse(parameters.enableAfter) > Date.now(); + return Date.parse(parameters.enableAfter) < Date.now(); } } @@ -110,7 +110,7 @@ Strategies are stored in separate JavaScript files and loaded into the container } isEnabled(parameters, context) { - return Date.parse(parameters.enableAfter) > Date.now(); + return Date.parse(parameters.enableAfter) < Date.now(); } } @@ -155,7 +155,7 @@ The Unleash Proxy accepts a `customStrategies` property as part of its initializ } isEnabled(parameters, context) { - return Date.parse(parameters.enableAfter) > Date.now(); + return Date.parse(parameters.enableAfter) < Date.now(); } } ``` @@ -172,7 +172,7 @@ The Unleash Proxy accepts a `customStrategies` property as part of its initializ } isEnabled(parameters, context) { - return Date.parse(parameters.enableAfter) > Date.now(); + return Date.parse(parameters.enableAfter) < Date.now(); } }