Fixed or logic break (#8857)
This commit is contained in:
@@ -22,7 +22,7 @@ function($rootScope, User, $http, Content, Notification) {
|
||||
};
|
||||
|
||||
Payments.checkGemAmount = function(data) {
|
||||
if(data.gift.type === "gems" && !data.gift.gems.amount || data.gift.gems.amount === 0) {
|
||||
if (data.gift.type === "gems" && (!data.gift.gems.amount || data.gift.gems.amount === 0)) {
|
||||
Notification.error(window.env.t('badAmountOfGemsToPurchase'), true);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user