Skip to content

Commit e2d5054

Browse files
feat: Validate Updated Subscription Flow (#50)
* Update index.js * chore: dist updated chore: dist updated --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 parents 84ef7e3 + 1e01ba3 commit e2d5054

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)