Skip to content

Commit

Permalink
use instant boosting for projects context
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Jul 20, 2023
1 parent d2b675f commit f08d7d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/context/projects.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ interface IProjectsContext {
}

const variablesDefaultValue = {
sortingBy: EProjectsSortBy.GIVPOWER,
sortingBy: EProjectsSortBy.INSTANT_BOOSTING,
filters: undefined,
};

const variablesDefaultValueWithQF = {
sortingBy: EProjectsSortBy.GIVPOWER,
sortingBy: EProjectsSortBy.INSTANT_BOOSTING,
filters: [EProjectsFilter.ACTIVE_QF_ROUND],
};

Expand Down Expand Up @@ -65,7 +65,7 @@ export const ProjectsProvider = (props: {
const router = useRouter();

useEffect(() => {
let sort = EProjectsSortBy.GIVPOWER;
let sort = EProjectsSortBy.INSTANT_BOOSTING;
if (router.query.sort) {
switch ((router.query.sort as string).toLowerCase()) {
case EProjectsSortBy.MOST_FUNDED.toLowerCase():
Expand Down

0 comments on commit f08d7d1

Please sign in to comment.