Fixes #116 via a similar-ish approach mentioned by @jvmahon here. Basically just waits for both fetch requests fo finish before resolving the Promise.
Tested locally on HS4 so this should hopefully do the trick... 🤞
Side note: I'd strongly recommend running these couple of files through Prettier to keep the formatting consistent. Makes quick PR's like this so much easier to get in and not trip over spaces vs tabs etc.
Fixes #116 via a similar-ish approach mentioned by @jvmahon here. Basically just waits for both fetch requests fo finish before resolving the Promise.
Tested locally on HS4 so this should hopefully do the trick... 🤞
Side note: I'd strongly recommend running these couple of files through Prettier to keep the formatting consistent. Makes quick PR's like this so much easier to get in and not trip over spaces vs tabs etc.