From 7f485cee91ee9d20688de466cb8c4c5bdac348ab Mon Sep 17 00:00:00 2001 From: thisfro Date: Wed, 14 Jul 2021 12:03:07 +0200 Subject: [PATCH] Set distance to null instead of 0 --- src/Controller/OfferController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/OfferController.php b/src/Controller/OfferController.php index 4d68277..deb8641 100644 --- a/src/Controller/OfferController.php +++ b/src/Controller/OfferController.php @@ -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();