Skip to content

Commit

Permalink
Fix on "NO_FORKS" msg condition
Browse files Browse the repository at this point in the history
  • Loading branch information
payne911 authored Oct 15, 2020
1 parent 63ad436 commit 74fc10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/useful_forks.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function add_fork_elements(forkdata_array, user, repo) {
for (let i = 0; i < Math.min(FORKS_PER_PAGE, forkdata_array.length); ++i) {
const elem_ref = forkdata_array[i];

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

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

0 comments on commit 74fc10b

Please sign in to comment.