chore: change uesrguiding check to use result prop from parsed body

This commit is contained in:
Aleksandar Shumakov 2024-08-22 10:56:35 +03:00
parent 727f57438b
commit d97d3143e0

View file

@ -97,8 +97,7 @@ const displayUserGuiding = (userId, permissions, guideId, callback) => (
return;
}
const {result} = JSON.stringify(body);
if (result) {
if (body?.result === "true") {
activateUserGuiding(userId, callback);
}
})