@@ -53,7 +53,7 @@ public class TariffInfoService {
|
||||
|
||||
Integer tokens = activeTariffInfo.getTokens();
|
||||
|
||||
if (tokens - value > 0) {
|
||||
if (tokens - value >= 0) {
|
||||
activeTariffInfo.setTokens(activeTariffInfo.getTokens() - value);
|
||||
|
||||
tariffInfoRepository.save(activeTariffInfo);
|
||||
|
||||
Reference in New Issue
Block a user