Skip to content

Commit

Permalink
fix(app): load cong_role to state on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Mar 8, 2023
1 parent b7c1a50 commit f8b2034
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
classCountState,
congNameState,
congNumberState,
congRoleState,
meetingDayState,
meetingTimeState,
openingPrayerAutoAssignState,
Expand Down Expand Up @@ -43,6 +44,7 @@ export const loadApp = async () => {
cong_number,
cong_name,
class_count,
cong_role,
meeting_day,
meeting_time,
user_avatar,
Expand Down Expand Up @@ -77,6 +79,7 @@ export const loadApp = async () => {
await promiseSetRecoil(usernameState, username || '');
await promiseSetRecoil(congNameState, cong_name || '');
await promiseSetRecoil(congNumberState, cong_number || '');
await promiseSetRecoil(congRoleState, cong_role || []);
await promiseSetRecoil(classCountState, class_count || 1);
await promiseSetRecoil(meetingDayState, meeting_day || 3);
await promiseSetRecoil(meetingTimeState, meeting_time || new Date(Date.now()));
Expand Down

0 comments on commit f8b2034

Please sign in to comment.