Skip to content

Commit

Permalink
Sandbox fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 23, 2024
1 parent 35e1541 commit 300a2aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/ApiFacade/Transaction/TransactionApiFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function translateGroupToChannel(array $data, bool $redirectToChannel): a
{
if ($redirectToChannel && $this->useOpenApi && $data['group'] && !$data['channel'] && TransactionOriginApi::BLIK_CHANNEL != (int) $data['group']) {
foreach ($this->openApi->channels() as $channel) {
$group = $channel->groups[0];
if ($group['id'] == $data['group']) {
$group = $channel->groups[0] ?? null;
if (isset($group['id']) && $group['id'] == $data['group']) {
$data['channel'] = $channel->id;
$data['group'] = null;

Expand Down

0 comments on commit 300a2aa

Please sign in to comment.