File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Submission } from "@/types/bounty";
2
2
import { Community } from "@/types/community" ;
3
3
import { Feedback } from "@/types/feedback" ;
4
4
import { createSlice , PayloadAction } from "@reduxjs/toolkit" ;
5
- import { setColors } from "../ui.slice" ;
5
+
6
6
import { HYDRATE } from "next-redux-wrapper" ;
7
7
8
8
interface InitialState {
@@ -34,7 +34,6 @@ const communitiesProfile = createSlice({
34
34
initialState,
35
35
reducers : {
36
36
setCurrentProfileCommunity ( state , action : PayloadAction < Community > ) {
37
- setColors ( action . payload . colors ) ;
38
37
state . current = action . payload ;
39
38
} ,
40
39
setListProfileCommunities ( state , action : PayloadAction < Community [ ] > ) {
Original file line number Diff line number Diff line change 9
9
setProfileCommunityReputation ,
10
10
setProfileCommunitySubmissions ,
11
11
} from "@/store/feature/profile/communities.slice" ;
12
+ import { setColors } from "@/store/feature/ui.slice" ;
13
+
12
14
import { Reputation , Submission } from "@/types/bounty" ;
13
15
import { Community } from "@/types/community" ;
14
16
import { Feedback } from "@/types/feedback" ;
@@ -72,6 +74,7 @@ const profileCommunitiesService: any = createApi({
72
74
dispatch ( setProfileCommunityFeedbacks ( data . feedbacks ) ) ;
73
75
dispatch ( setProfileCommunitySubmissions ( data . submissions ) ) ;
74
76
dispatch ( setProfileCommunityReputation ( data . reputation ) ) ;
77
+ dispatch ( setColors ( data . community . colors ) ) ;
75
78
} catch ( error ) {
76
79
dispatch ( setBusy ( false ) ) ;
77
80
dispatch ( setError ( error ) ) ;
You can’t perform that action at this time.
0 commit comments