浏览代码

Fix division by zero

Jovan Jovanovic 3 年之前
父节点
当前提交
6bcc5d8f29
共有 1 个文件被更改,包括 2 次插入0 次删除
  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>