From d62ae5865bffc654604d40aeafb930371e9f703e Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Mon, 11 Dec 2023 17:54:55 +0900 Subject: [PATCH] fix: write rule typo --- src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 1f9c9ca..7552df4 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -82,7 +82,7 @@ export const defaultAppRules = (appName: string): { [type: string]: { ref: strin "util.isDict(newData) && " + "util.isString(newData.depositAddress) && " + "util.isNumber(newData.costPerToken) && " + - "util.isNumber(newData.minCost) && newData.minCost >= 0" + + "util.isNumber(newData.minCost) && newData.minCost >= 0 &&" + "(util.isEmpty(newData.maxCost) || (util.isNumber(newData.maxCost) && newData.maxCost >= newData.minCost))", }, },