We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fb93b commit 88cb1d5Copy full SHA for 88cb1d5
src/reducers/alerts.js
@@ -142,8 +142,12 @@ export default function(state = {}, action) {
142
143
case INVITE_TOPCODER_MEMBER_SUCCESS:
144
case INVITE_CUSTOMER_SUCCESS:
145
- if(action.payload.success.length) {
+ if(action.payload.success.length && !action.payload.failed) {
146
Alert.success('You\'ve successfully invited member(s).')
147
+ } else if (action.payload.success.length && action.payload.failed) {
148
+ Alert.warning('Some members couldn\’t be invited.')
149
+ } else if (!action.payload.success.length && action.payload.failed) {
150
+ Alert.error('You are unable to invite members successfully.')
151
}
152
return state
153
0 commit comments