diff --git a/gui/templates/home.html b/gui/templates/home.html
index e3ef5626..bbd56765 100644
--- a/gui/templates/home.html
+++ b/gui/templates/home.html
@@ -766,7 +766,7 @@
Sign a Message
offChain.d7.amt += p.value
}
for(inv of (await inv_rev_task).results){
- if(adjustTZ(p.creation_date) >= _1day_ago){
+ if(adjustTZ(inv.creation_date) >= _1day_ago){
offChain.d1.inv_rev += inv.amt_paid
}
offChain.d7.inv_rev += inv.amt_paid