We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ef7e3 commit 42d25b1Copy full SHA for 42d25b1
index.js
@@ -16,7 +16,7 @@ async function validateSubscription() {
16
try {
17
await axios.get(API_URL, {timeout: 3000});
18
} catch (error) {
19
- if (error.response) {
+ if (error.response && error.response.status === 403) {
20
console.error(
21
'Subscription is not valid. Reach out to [email protected]'
22
);
0 commit comments