fix recording calendar level out of range (#121)
This commit is contained in:
@@ -101,7 +101,7 @@ export const RecordingCalendar = (props: {
|
||||
_stats.forEach((a) => {
|
||||
if (a.count === 0) {
|
||||
a.level = 0;
|
||||
} else if (a.count > 40) {
|
||||
} else if (a.count >= 40) {
|
||||
a.level = 4;
|
||||
} else {
|
||||
a.level = Math.floor(a.count / 10) + 1;
|
||||
|
||||
1
enjoy/src/types/user.d.ts
vendored
1
enjoy/src/types/user.d.ts
vendored
@@ -5,4 +5,5 @@ type UserType = {
|
||||
accessToken?: string;
|
||||
recordingsCount?: number;
|
||||
recordingsDuration?: number;
|
||||
createdAt?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user