Skip to content

Commit 916e75b

Browse files
committed
fix: problem alias
1 parent 8a3d2c2 commit 916e75b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/ProblemContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class ProblemContent extends React.Component<Props, State> {
127127
const titlePrefix =
128128
typeof problemAlias === 'string'
129129
? `${problemAlias} - `
130-
: problemIndex && Number.isInteger(problemIndex)
130+
: Number.isInteger(problemIndex) && problemIndex >= 0
131131
? `${numberToAlphabet(problemIndex)} - `
132132
: null;
133133

0 commit comments

Comments
 (0)