Skip to content

Commit 74fc10b

Browse files
authored
Fix on "NO_FORKS" msg condition
1 parent 63ad436 commit 74fc10b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/useful_forks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function add_fork_elements(forkdata_array, user, repo) {
150150
for (let i = 0; i < Math.min(FORKS_PER_PAGE, forkdata_array.length); ++i) {
151151
const elem_ref = forkdata_array[i];
152152

153-
/* Basic data (#stars, #watchers, #forks). */
153+
/* Basic data (stars, watchers, forks). */
154154
build_fork_element_html(table_body, elem_ref.full_name, elem_ref.stargazers_count, elem_ref.watchers_count, elem_ref.forks_count);
155155

156156
/* Commits diff data (ahead/behind). */
@@ -173,7 +173,7 @@ function request_fork_page(page_number, user, repo) {
173173
() => {
174174
const response = JSON.parse(request.responseText);
175175
if (!response || response.length === 0) {
176-
if (page_number === 0) {
176+
if (page_number === 1) {
177177
getElementById_$(UF_ID_MSG).html(UF_MSG_NO_FORKS);
178178
}
179179
return;

0 commit comments

Comments
 (0)