fix typo in split()

This commit is contained in:
nrbdev 2025-02-22 16:30:17 -05:00
parent 2dfb36018f
commit af7df53799

View File

@ -334,7 +334,7 @@ const handleCreditBundlePurchase = async (
typeName: string,
inventory: TInventoryDatabaseDocument
): Promise<IPurchaseResponse> => {
const bundleName = typeName.split(typeName).pop();
const bundleName = typeName.split("/").pop();
let creditsAmount = 0;
// CreditBundleA = 50.000 credits or CreditBundleC = 175.000 credits