File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/components/dashboard/LeaderBoard Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,13 @@ export default function LeaderBoard(): JSX.Element {
151151 setSelectedContributor ( null ) ;
152152 } ;
153153
154- // Use mock data when there's an error or no contributors
155- const displayContributors = error || contributors . length === 0 ? mockContributors : contributors ;
154+ // Use mock data only in development mode when there's an error or no contributors
155+ const displayContributors =
156+ ( error || contributors . length === 0 )
157+ ? ( typeof process !== "undefined" && process . env . NODE_ENV === "development"
158+ ? mockContributors
159+ : [ ] )
160+ : contributors ;
156161
157162 // Filter out excluded users and then apply search filter
158163 const filteredContributors = displayContributors
You can’t perform that action at this time.
0 commit comments