mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 10:53:48 +08:00
Merge branch 'master' into off-topic-features
This commit is contained in:
@@ -80,7 +80,7 @@ export default class UserDetail extends React.Component {
|
||||
profile = localProfile.id;
|
||||
}
|
||||
|
||||
let rejectedPercent = rejectedComments / totalComments;
|
||||
let rejectedPercent = (rejectedComments / totalComments) * 100;
|
||||
if (rejectedPercent === Infinity || isNaN(rejectedPercent)) {
|
||||
|
||||
// if totalComments is 0, you're dividing by zero, which is naughty
|
||||
|
||||
Reference in New Issue
Block a user