mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 06:12:18 +00:00
Merge pull request #350 from storytold/olivicmic-fy-voice-designer-consume-api-react
temporary fix for get voice having no success key
This commit is contained in:
1 file changed
+4
-1
@@ -44,7 +44,10 @@ const MakeRequest = <UrlRouteArgs, Request, Response>(routeSetup: RouteSetup<Url
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(res => {
|
||||
if (res && "success" in res) {
|
||||
if (res && res.voice_token) {
|
||||
return res;
|
||||
}
|
||||
else if (res && "success" in res) {
|
||||
return res;
|
||||
} else Promise.reject();
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user