From 01b9a420b8609680bfc976811e7ef9763efdd8f4 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 2 Jun 2013 11:23:02 -0400 Subject: [PATCH] groups: only show invitations if there are any (was previously iterating empty array) --- views/app/groups.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/views/app/groups.html b/views/app/groups.html index 5674dcf7ed..57383870f2 100644 --- a/views/app/groups.html +++ b/views/app/groups.html @@ -35,10 +35,14 @@
- {#each _user.invitations.guilds as :invitation} -

You're Invited To {:invitation.name}

- Accept - Reject + {#if _user.invitations.guilds} + {#each _user.invitations.guilds as :invitation} +
+

You're Invited To {:invitation.name}

+ Accept + Reject +
+ {/} {/}