Skip to content

Commit adcde81

Browse files
committed
prettify
1 parent ad7bd51 commit adcde81

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/redux/parts/notifications.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)