From 6e9a72a4b552a0914037c12d52a994dc9959446e Mon Sep 17 00:00:00 2001 From: Martin Klepsch Date: Mon, 23 Apr 2018 15:43:45 +0200 Subject: [PATCH] ensure loading screen is only shown if we havent already rendered some bounties --- src/cljs/commiteth/manage_payouts.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cljs/commiteth/manage_payouts.cljs b/src/cljs/commiteth/manage_payouts.cljs index 79e6b77..e1500be 100644 --- a/src/cljs/commiteth/manage_payouts.cljs +++ b/src/cljs/commiteth/manage_payouts.cljs @@ -335,7 +335,9 @@ [:div.bg-white.br3.shadow-6.pa4.tc [:h3 "Please log in to view this page."]] - (or (nil? @owner-bounties-loading?) @owner-bounties-loading?) + (and + (empty? @owner-bounties) + (or (nil? @owner-bounties-loading?) @owner-bounties-loading?)) [manage-payouts-loading] :else