From 5598624ee142603bcba870e1be5102a55643cb4f Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 10 Nov 2015 14:06:06 +0000 Subject: [PATCH] only run participate test for sign up if user has no projects --- .../coffee/main/project-list/project-list.coffee | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/services/web/public/coffee/main/project-list/project-list.coffee b/services/web/public/coffee/main/project-list/project-list.coffee index d2b036db4a..4e7efafa78 100644 --- a/services/web/public/coffee/main/project-list/project-list.coffee +++ b/services/web/public/coffee/main/project-list/project-list.coffee @@ -11,12 +11,14 @@ define [ $scope.predicate = "lastUpdated" $scope.reverse = true - - sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)-> - $scope.first_sign_up = chosenVariation - $timeout () -> - recalculateProjectListHeight() - , 10 + if $scope.projects.length > 0 + $scope.first_sign_up = "default" + else + sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)-> + $scope.first_sign_up = chosenVariation + $timeout () -> + recalculateProjectListHeight() + , 10 recalculateProjectListHeight = () -> topOffset = $(".project-list-card")?.offset()?.top