From 0365da2b0e5da984376bbed257e23370b2c0beb7 Mon Sep 17 00:00:00 2001 From: amirhnajafiz Date: Thu, 8 Dec 2022 23:12:18 +0330 Subject: [PATCH] fix: user repo erros --- application/src/components/Box/index.js | 83 +++++++++++++------------ 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/application/src/components/Box/index.js b/application/src/components/Box/index.js index 5174176..ce7bf54 100644 --- a/application/src/components/Box/index.js +++ b/application/src/components/Box/index.js @@ -17,45 +17,50 @@ class Box extends React.Component { return(
- { - array.map((repo) => ( -
-

- {repo.full_name} -

-

- {repo.description} -

-
    - { - repo.topics.map((topic) => ( -
  • - {topic} -
  • - )) - } -
-
- - {repo.language} - - - Stars: {repo.stargazers_count} - - - - Repo link - - -
-
- )) - } + { + this.props.userInformation !== "No value" ? ( + array.map((repo) => ( +
+

+ {repo.full_name} +

+

+ {repo.description} +

+
    + { + repo.topics.map((topic) => ( +
  • + {topic} +
  • + )) + } +
+
+ + {repo.language} + + + Stars: {repo.stargazers_count} + + + + Repo link + + +
+
+ )) + ) : ( +
+                        No value
+                    
+ )}
) }