mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
chore: change uesrguiding check to use result prop from parsed body
This commit is contained in:
parent
727f57438b
commit
d97d3143e0
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue