diff --git a/backend/src/graphql/resolver/AdminResolver.ts b/backend/src/graphql/resolver/AdminResolver.ts index f2b369d68..f8769f35d 100644 --- a/backend/src/graphql/resolver/AdminResolver.ts +++ b/backend/src/graphql/resolver/AdminResolver.ts @@ -518,7 +518,7 @@ export class AdminResolver { throw new Error('The amount must be initialized!') } const amountObj = new Decimal(amount) - if (amountObj.isZero || amountObj.isNegative()) { + if (amountObj.lessThanOrEqualTo(new Decimal(0))) { logger.error(`The amount=${amount} must be initialized with a positiv value!`) throw new Error(`The amount=${amount} must be initialized with a positiv value!`) }