Skip to content

Commit 7148417

Browse files
committed
Small fix in the currency update
1 parent 4668438 commit 7148417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/tradingService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const trade = async (tradeData) => {
8181

8282
const orderValue = qtyUserCanPurchase * stockData.price
8383
const stockPriceToBeUpdated = getUpdatedPrice(stockData.price)
84-
updatedCurrencyData.walletConstants.DINERO = userBalance
84+
updatedCurrencyData[walletConstants.DINERO] = userBalance
8585

8686
const updatedStockData = {
8787
...stockData,

0 commit comments

Comments
 (0)