Skip to content

Commit 7e6e4b4

Browse files
committed
Return ENDPOINT_DOWN if window.fetch fails
1 parent 49fa33d commit 7e6e4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/monetization/src/gumroad/validate-gumroad-license-key-main-async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function validateGumroadLicenseKeyMainAsync(options: {
4747
purchaseTimestamp: purchase.sale_timestamp
4848
}
4949
} catch {
50-
return ${trimmedLicenseKey !== null ? 'VALID' : 'ENDPOINT_DOWN'}
50+
return { result: 'ENDPOINT_DOWN' }
5151
}
5252
}
5353
async function main () {

0 commit comments

Comments
 (0)