Skip to content

Commit 2ed58e3

Browse files
refactor(auth): get request success from the header instead of body (#668)
Co-authored-by: Brett <27568879+BrettCleary@users.noreply.github.com>
1 parent 34ae018 commit 2ed58e3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/backend/main.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -264,16 +264,7 @@ async function completeHyperPlayQuest() {
264264
return
265265
}
266266

267-
const data = (await response.json()) as { status: number; message: string }
268-
269-
if (data.status !== 0) {
270-
logInfo(`Completed HyperPlay Summon task`, LogPrefix.Backend)
271-
} else {
272-
logError(
273-
`Failed to complete summon task: ${data?.message}`,
274-
LogPrefix.Backend
275-
)
276-
}
267+
logInfo(`Completed HyperPlay Summon task`, LogPrefix.Backend)
277268
}
278269

279270
async function initializeWindow(): Promise<BrowserWindow> {

0 commit comments

Comments
 (0)