Skip to content

Commit

Permalink
replace .length with .size on /home/subscriptions (publiclab#8616)
Browse files Browse the repository at this point in the history
  • Loading branch information
IjayAbby authored and Piyush Swain committed Oct 22, 2020
1 parent 8512cc1 commit 67cd765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/home/subscriptions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<div class="col-lg-9">

<h3><%=raw translation('home.subscriptions.manage_subscriptions') %> (<%= current_user.subscriptions.length %>)</h3>
<h3><%=raw translation('home.subscriptions.manage_subscriptions') %> (<%= current_user.subscriptions.size %>)</h3>

<form class="navbar-form" action="/subscribe/tag">
<div class="form-group">
Expand All @@ -55,7 +55,7 @@
</div>
</form>

<% if current_user.subscriptions.length == 0 %>
<% if current_user.subscriptions.size == 0 %>
<p> You haven't subscribed to any topic yet </p>
<% else %>
<table class="table">
Expand Down

0 comments on commit 67cd765

Please sign in to comment.