minor fix marketplace + xyi ego znaet
This commit is contained in:
@ -26,6 +26,7 @@ import { getPlayerServer } from '../utils/playerOnlineCheck';
|
||||
import CaseRoulette from '../components/CaseRoulette';
|
||||
import BonusShopItem from '../components/BonusShopItem';
|
||||
import ShopItem from '../components/ShopItem';
|
||||
import { playBuySound } from '../utils/sounds';
|
||||
|
||||
function getRarityByWeight(
|
||||
weight?: number,
|
||||
@ -157,6 +158,9 @@ export default function Shop() {
|
||||
try {
|
||||
await purchaseCape(username, cape_id);
|
||||
await loadUserCapes(username);
|
||||
|
||||
playBuySound();
|
||||
|
||||
setNotification({
|
||||
open: true,
|
||||
message: 'Плащ успешно куплен!',
|
||||
@ -260,6 +264,9 @@ export default function Shop() {
|
||||
await withProcessing(bonusTypeId, async () => {
|
||||
try {
|
||||
const res = await purchaseBonus(username, bonusTypeId);
|
||||
|
||||
playBuySound();
|
||||
|
||||
setNotification({
|
||||
open: true,
|
||||
message: res.message || 'Прокачка успешно куплена!',
|
||||
|
||||
Reference in New Issue
Block a user