mirror of
https://github.com/discourse/discourse.git
synced 2026-08-02 09:29:37 -05:00
FIX: Ensure software-update banner is only shown after 24 hours (#12634)
`isTesting` is a function, so `if(isTesting)` was only checking for the presence of the function. We need to actually evaluate it. Followup to 68a032a734
This commit is contained in:
@@ -43,7 +43,7 @@ export default Component.extend({
|
||||
}
|
||||
|
||||
if (!this._timeoutHandler && this.session.requiresRefresh) {
|
||||
if (isTesting) {
|
||||
if (isTesting()) {
|
||||
this.set("showPrompt", true);
|
||||
} else {
|
||||
// Since we can do this transparently for people browsing the forum
|
||||
|
||||
Reference in New Issue
Block a user