File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/app/[locale]/projects Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import { ProjectListEmpty } from "@/components/project/ListEmpty";
1717export const getDataByCategory = ( lang :string , category ?: string ) => {
1818 return (
1919 category
20- ? [ ...PROJECTS . filter ( ( project ) => project . categoryCode === category ) ]
21- : [ ...PROJECTS ]
20+ ? [ ...PROJECTS . filter ( ( project ) => project . categoryCode === category && project . lang === lang ) ]
21+ : [ ...PROJECTS . . filter ( ( project ) => project . lang === lang ) ]
2222 )
2323 . map < IProject > ( ( project ) => ( {
2424 ...project ,
@@ -27,7 +27,7 @@ export const getDataByCategory = (lang:string, category?: string) => {
2727 ) . map ( ( technology ) => ( {
2828 ...technology ,
2929 categories : PROJECT_TECHNOLOGY_CATEGORY . filter ( ( category ) =>
30- technology . categoryCodes . includes ( category . value ) && project . lang === lang ,
30+ technology . categoryCodes . includes ( category . value ) ,
3131 ) ,
3232 } ) ) ,
3333 } ) )
You can’t perform that action at this time.
0 commit comments