Set distance to null instead of 0

This commit is contained in:
Jannis Portmann 2021-07-14 12:03:07 +02:00
parent 1758011412
commit 7f485cee91

View file

@ -77,7 +77,7 @@ class OfferController extends AbstractController
#[Route('/offer/{id}', name: 'show_offer')]
public function showOffer(Offering $offer, WishRepository $wishRepository, PlzToCoordinate $plzconverter, DistanceCalculator $distanceCalculator): Response
{
$distance = 0;
$distance = null;
$user = $this->getUser();
$offerPlz = $offer->getZipCode();