diff --git a/src/Form/Type/ChannelBasedRulePricing.php b/src/Form/Type/ChannelBasedRulePricing.php index bc92fc8..8cfedaf 100644 --- a/src/Form/Type/ChannelBasedRulePricing.php +++ b/src/Form/Type/ChannelBasedRulePricing.php @@ -22,7 +22,6 @@ public function configureOptions(OptionsResolver $resolver): void $resolver->setDefaults([ 'entry_type' => ChannelPriceType::class, 'entry_options' => function (ChannelInterface $channel) { - if (null == $channel->getBaseCurrency()) return [ 'label' => $channel->getCode(), 'currency' => !is_null($channel->getBaseCurrency()) ? $channel->getBaseCurrency()->getCode() : null,