From cb66d0439c8ab26085ba1d2b7f96b6782bf589e3 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 18 Oct 2022 21:13:31 -0400 Subject: [PATCH] Fixed minor contribution bug --- js/component/card/contribute.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/component/card/contribute.js b/js/component/card/contribute.js index eab9868..2b68880 100644 --- a/js/component/card/contribute.js +++ b/js/component/card/contribute.js @@ -2,6 +2,18 @@ * Main contribute card. */ beestat.component.card.contribute = function() { + const self = this; + + beestat.dispatcher.addEventListener( + [ + 'cache.user', + 'cache.stripe_event' + ], + function() { + self.rerender(); + } + ); + beestat.component.card.apply(this, arguments); this.state_.currency_multiplier = [