Skip to content

Commit 56019e0

Browse files
authored
Merge pull request #38 from lactf/qol-fixes
QOL Fixes
2 parents a6b8fe6 + 786f339 commit 56019e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/routes/challs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const Challenges = ({ classes }) => {
194194
<div class={classes.showSolved}>
195195
<div class='form-ext-control form-ext-checkbox'>
196196
<input id='show-solved' class='form-ext-input' type='checkbox' checked={showSolved} onChange={handleShowSolvedChange} />
197-
<label for='show-solved' class='form-ext-label'>Show Solved ({solvedCount}/{problems.length} solved)</label>
197+
<label for='show-solved' class='form-ext-label'>Show Solved ({solvedCount}/{(problems ?? []).length} solved)</label>
198198
</div>
199199
</div>
200200
</div>

client/src/routes/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default withStyles({
145145
} catch {}
146146

147147
const result = await login({
148-
teamToken
148+
teamToken: decodeURIComponent(teamToken)
149149
})
150150
if (result.authToken) {
151151
setAuthToken({ authToken: result.authToken })

0 commit comments

Comments
 (0)