Skip to content

Commit

Permalink
fix: school in JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Apr 29, 2023
1 parent 443fc9d commit c8ccd23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "scolengo-token",
"description": "Application Electron pour obtenir des jetons Skolengo API",
"version": "1.2.3",
"version": "1.2.4",
"private": true,
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ ipcMain.on('school-search', async (event, schoolName) => {
return mainWindow.reload()
}
if (schools.length === 1) {
oidClient = await Skolengo.getOIDClient(schools[0])
selectedSchool = schools[0]
oidClient = await Skolengo.getOIDClient(selectedSchool)
const authURL = oidClient.authorizationUrl()
mainWindow.loadURL(authURL)
} else mainWindow.webContents.send('school-list', schools)
Expand Down

0 comments on commit c8ccd23

Please sign in to comment.