From 6e7cadb2e7982a6ea1f5c34724001b53c58e64ff Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 29 Dec 2015 17:40:20 -0800 Subject: [PATCH] Load random commit if none specified --- server/boot/commit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/boot/commit.js b/server/boot/commit.js index 37f8559436..8d5805ee2a 100644 --- a/server/boot/commit.js +++ b/server/boot/commit.js @@ -44,7 +44,7 @@ function findNonprofit(name) { }); } - nonprofit = nonprofit || nonprofits[0]; + nonprofit = nonprofit || nonprofits[ _.random(0, nonprofits.length - 1) ]; return nonprofit; }