Skip to content

Commit 166b919

Browse files
committed
subs are always in-market
1 parent 196aee2 commit 166b919

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/locker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ const locker = {
3838
// user info
3939
user: {
4040
isSubscriber() {
41-
return true;
41+
return false;
4242
},
4343

4444
isLoggedIn() {
4545
return false;
4646
},
4747

4848
isInDMA() {
49-
return Promise.resolve(true);
49+
return Promise.resolve(false);
5050
}
5151
},
5252

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function load(url) {
1515
const res = await fetch(url);
1616
const data = await res.json();
1717
const subscriber = locker.user.isSubscriber();
18-
const dma = await locker.user.isInDMA();
18+
const dma = subscriber ? true : await locker.user.isInDMA();
1919

2020
// Load WPS zones
2121
if(data.base) {

0 commit comments

Comments
 (0)