File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -78,23 +78,28 @@ type SetChannelsAction = {|
7878 type : 'notifications/SET_CHANNELS' ,
7979 payload : Set < NotificationChannelName > ,
8080| }
81- export function hydrate ( ) : ThunkAction < SetPermissionsAction | SetChannelsAction > {
81+ export function hydrate ( ) : ThunkAction <
82+ SetPermissionsAction | SetChannelsAction ,
83+ > {
8284 return dispatch => {
8385 OneSignal . getPermissionSubscriptionState ( permissions => {
84- dispatch ( { type : SET_PERMISSIONS , payload : {
85- enabled : permissions . notificationsEnabled ,
86- hasPrompted : permissions . hasPrompted ,
87- } } )
86+ dispatch ( {
87+ type : SET_PERMISSIONS ,
88+ payload : {
89+ enabled : permissions . notificationsEnabled ,
90+ hasPrompted : permissions . hasPrompted ,
91+ } ,
92+ } )
8893 } )
8994
9095 OneSignal . getTags ( tags => {
9196 if ( ! tags ) {
92- return ;
97+ return
9398 }
9499
95100 if ( tags . stack && tags . message ) {
96101 // it's an error
97- return ;
102+ return
98103 }
99104
100105 let channels : Set < any > = new Set ( Object . keys ( tags ) )
You can’t perform that action at this time.
0 commit comments