diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee
index cb44e1abe97f13714d0d9c8c0a41f60ad3e7e960..87c1b67a772cc1e6af801e4f3c53b4f759710eb3 100644
--- a/app/assets/javascripts/project.js.coffee
+++ b/app/assets/javascripts/project.js.coffee
@@ -1,8 +1,8 @@
 class @Project
   constructor: ->
     # Git clone panel switcher
-    cloneHolder = $ '.git-clone-holder'
-    if cloneHolder.length > 0
+    cloneHolder = $('.git-clone-holder')
+    if cloneHolder.length
       $('a, button', cloneHolder).click ->
         $('a, button', cloneHolder).removeClass 'active'
         $(@).addClass 'active'
@@ -28,4 +28,4 @@ class @Project
     $('.js-toggle-clone-holder').on 'click', (e) ->
       cloneHolder.toggle()
 
-    cloneHolder.hide()
+    cloneHolder.hide() unless $('.empty-project').length