Skip to content

Commit

Permalink
LP-158 Unsupported operand types: string + string bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed Dec 21, 2023
1 parent a821952 commit a2338a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/WalletTransferController.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function store(StoreWalletTransferRequest $request): JsonResponse
$depositedUpdatedAccount['user_account_data']['available_amount'] = $userUpdatedBalance['current_amount'];

$order_data['order_data']['previous_amount'] = $depositedAccount->user_account_data['available_amount'];
$order_data['order_data']['current_amount'] = ($order_data['order_data']['previous_amount'] + $inputs['amount']);
$order_data['order_data']['current_amount'] = ((float) $order_data['order_data']['previous_amount'] + (float) $inputs['converted_currency']);
if (! Transaction::userAccount()->update($depositedAccount->getKey(), $depositedUpdatedAccount)) {
throw new Exception(__('User Account Balance does not update', [
'current_status' => $walletTransfer->currentStatus(),
Expand Down

0 comments on commit a2338a1

Please sign in to comment.