Browse Source

Fix division by zero

Jovan Jovanovic 3 năm trước cách đây
mục cha
commit
6bcc5d8f29
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      resources/views/home.blade.php

+ 2 - 0
resources/views/home.blade.php

@@ -67,6 +67,7 @@
                 </div>
                 <!-- /.col -->
 
+                @if($useage > 0)
                 <div class="col-12 col-sm-6 col-md-3">
                     <div class="info-box mb-3">
                         @if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15)
@@ -91,6 +92,7 @@
                     <!-- /.info-box -->
                 </div>
                 <!-- /.col -->
+                @endif
 
             </div>