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:
David Taylor 2021-04-07 17:00:23 +01:00 committed by GitHub
parent 5e4c0e2caa
commit 9c78bb26d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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