diff --git a/app/views/my_modules/_state_buttons.html.erb b/app/views/my_modules/_state_buttons.html.erb
index b4788f7b1..e9578978f 100644
--- a/app/views/my_modules/_state_buttons.html.erb
+++ b/app/views/my_modules/_state_buttons.html.erb
@@ -1,20 +1,22 @@
-
- <% if !@my_module.completed? %>
-
-
-
- <% else @my_module.completed? %>
-
-
-
- <% end %>
-
+ <% if can_complete_module(@my_module) %>
+
+ <% if !@my_module.completed? %>
+
+
+
+ <% elsif @my_module.completed? %>
+
+
+
+ <% end %>
+
+ <% end %>
\ No newline at end of file