Skip to content

Commit 1f15cf4

Browse files
committed
fix: set CN data region user's country code as CN
1 parent cb94b1e commit 1f15cf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/contests.js

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ const fetchContestRankings = async function (contestSlug) {
5656
data_region,
5757
rank,
5858
} = ranks;
59+
if (data_region === "CN") {
60+
country_code = "CN";
61+
}
5962
let ranking = {
6063
username,
6164
user_slug,

0 commit comments

Comments
 (0)