Button size (Showing both On & Off)

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

When I go to turn off ports I’m seeing the button slide show both On and Off rather then showing just On or Off. Not sure where to resolve this?