diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-02 08:25:50 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-02 08:25:50 +0800 |
commit | 073a96cf63a8b2e5639d15133d09545f7bde1388 (patch) | |
tree | 8c2250740101b6b26e3d48745e06bca46e59260d /packages/website/ts/utils | |
parent | 817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0 (diff) | |
download | dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar.gz dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar.bz2 dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar.lz dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar.xz dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.tar.zst dexon-sol-tools-073a96cf63a8b2e5639d15133d09545f7bde1388.zip |
Implement subscription form
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/backend_client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/utils/backend_client.ts b/packages/website/ts/utils/backend_client.ts index fb7c21c59..6b16aea6b 100644 --- a/packages/website/ts/utils/backend_client.ts +++ b/packages/website/ts/utils/backend_client.ts @@ -34,11 +34,11 @@ export const backendClient = { const result = await fetchUtils.requestAsync(utils.getBackendBaseUrl(), WIKI_ENDPOINT); return result; }, - async subscribeToNewsletterAsync(email: string): Promise<boolean> { + async subscribeToNewsletterAsync(email: string): Promise<Response> { const result = await fetchUtils.postAsync(utils.getBackendBaseUrl(), SUBSCRIBE_SUBSTACK_NEWSLETTER_ENDPOINT, { email, referrer: window.location.href, }); - return result.status === 200; + return result; }, }; |