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:
parent
5e4c0e2caa
commit
9c78bb26d7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue