Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: sign at home bug
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb authored Feb 19, 2021
1 parent e5af9e8 commit 5f6ad0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class School {

async loadSchoolFromToml(toml) {
if (!this.conf.get('school')) {
const isSignAtHome = toml.addr
const isSignAtHome = toml.users[0].addr
const school = await this.schoolApi(toml.school, isSignAtHome)
if (!isSignAtHome) school.addr = await this.schoolAddr(school.name)
this.conf.set('school', school)
Expand Down

0 comments on commit 5f6ad0c

Please sign in to comment.