Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
remove showing vaccine in widget too, in case its set via "old" config
Browse files Browse the repository at this point in the history
  • Loading branch information
rphl committed May 18, 2022
1 parent 11678a0 commit 5414801
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions incidence.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ class UIComp {
let bb3 = new UI(bb).stack('h', padding)
if (ENV.isMediumWidget && CFG.showDataInRow === false && typeof ENV.cache.s1 === 'undefined') {
UIComp.statisticsRow(bb3, 's0')
} else if (ENV.isMediumWidget && CFG.showDataInRow === 'vaccine' && typeof ENV.cache.s1 === 'undefined' && typeof ENV.cache.vaccine !== 'undefined') {
UIComp.vaccineRow(bb3, 's0')
} else if (ENV.isMediumWidget && CFG.showDataInRow === 'hospitalization' && typeof ENV.cache.s1 === 'undefined' && typeof ENV.cache.hospitalization !== 'undefined') {
UIComp.hospitalizationRow(bb3, 's0')
} else if (ENV.isMediumWidget && typeof ENV.cache.s1 !== 'undefined') {
Expand Down Expand Up @@ -587,12 +585,9 @@ class UIComp {

let b3 = new UI(b).stack('h', [0, 0, 2, 6])
b3.space()
if (CFG.showDataInBlocks === 'vaccine' && ENV.cache.vaccine) {
UIComp.vaccineInfo(b3, cacheID);
} else if (CFG.showDataInBlocks === 'hospitalization' && ENV.cache.hospitalization) {
if (CFG.showDataInBlocks === 'hospitalization' && ENV.cache.hospitalization) {
UIComp.hospitalizationInfo(b3, cacheID);
}


let b2 = new UI(r).stack('v', false, false, false, false, [60, 30])
let b2b2 = new UI(b2).stack('h', [0, 0, 0, 6])
Expand Down

0 comments on commit 5414801

Please sign in to comment.