Skip to content

Commit 42d25b1

Browse files
Update index.js
1 parent 84ef7e3 commit 42d25b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function validateSubscription() {
1616
try {
1717
await axios.get(API_URL, {timeout: 3000});
1818
} catch (error) {
19-
if (error.response) {
19+
if (error.response && error.response.status === 403) {
2020
console.error(
2121
'Subscription is not valid. Reach out to [email protected]'
2222
);

0 commit comments

Comments
 (0)