Closed rahulbanerjee26 closed 3 years ago
In some cases, a user can clap for an article but not actually read it. An edge case is when the number of reads is 0 but the number of claps is non-zero. It shows the ratio as inifinity% in this case
If the number of reads is 0, the ratio is also 0
Thank you!
Issue
In some cases, a user can clap for an article but not actually read it. An edge case is when the number of reads is 0 but the number of claps is non-zero. It shows the ratio as inifinity% in this case
Fix
If the number of reads is 0, the ratio is also 0