Fix division by Zero in pireps/show.blade.php (#1493)

* Fix division by Zero in pireps/show.blade.php

Division by Zero caused by possible null distance fixed by adding check.

* Update show.blade.php

* Update show.blade.php

* Update show.blade.php

Final form :)
pull/1482/head^2
fagidutt 2 years ago committed by GitHub
parent 41bd325f9a
commit 00918f54aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,6 +72,7 @@
</div>
</div>
@if(!empty($pirep->distance))
<div class="row">
<div class="col-12">
<div class="progress" style="margin: 20px 0;">
@ -82,6 +83,7 @@
</div>
</div>
</div>
@endif
<div class="row">
<div class="col-12">

Loading…
Cancel
Save