Skip to content

Commit 3e8ada2

Browse files
committed
checked if beats is not there value: Nill
1 parent 0f935ab commit 3e8ada2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/Profile/Circle&Questions/Questions.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Line from './Line'
22

3-
const Questions = ({ type, solved, beats, line, line2, total }) => {
3+
const Questions = ({ type, solved, line, line2, total, beats }) => {
44
return (
55

66

@@ -15,7 +15,7 @@ const Questions = ({ type, solved, beats, line, line2, total }) => {
1515
</div>
1616
</div >
1717
<p className="space-x-1.5"><span className='text-[#9FA0A5] text-sm'>Beats</span>
18-
<span className="font-medium text-[#BDBFC2] text-sm">{beats}</span>
18+
<span className="font-medium text-[#BDBFC2] text-sm">{beats ? (beats) : `Nill`}</span>
1919
</p>
2020
</div>
2121
<Line color={line} total={total} solved={solved} line2={line2} />

0 commit comments

Comments
 (0)