From d6bdfdfb7fbe11a9c2774a78e1d9f1097e787908 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 31 Dec 2021 11:39:05 +0500 Subject: [PATCH] fix --- commands/Economy/slots.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/commands/Economy/slots.js b/commands/Economy/slots.js index 29b15768..1ab7dc2c 100644 --- a/commands/Economy/slots.js +++ b/commands/Economy/slots.js @@ -40,11 +40,9 @@ class Slots extends Command { amount = Math.round(amount); function getCredits(number, isJackpot) { - if (!isJackpot) { - number = number * 1.5; - } else if (isJackpot) { - number = number * 4; - }; + if (!isJackpot) number = number * 1.5; + else if (isJackpot) number = number * 4; + return Math.round(number); };