File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,11 @@ Branch.prototype.logout = function() {
224
224
* @return (Promise)
225
225
*/
226
226
Branch . prototype . userCompletedAction = function ( action , metaData ) {
227
+ if ( ! action ) {
228
+ return new Promise ( function ( resolve , reject ) {
229
+ reject ( 'Please set an event name' ) ;
230
+ } ) ;
231
+ }
227
232
228
233
var args = [ action ] ;
229
234
Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ Branch.prototype.logout = function () {
208
208
* @return (Promise)
209
209
*/
210
210
Branch . prototype . userCompletedAction = function ( action , metaData ) {
211
+ if ( ! action ) {
212
+ return new Promise ( function ( resolve , reject ) {
213
+ reject ( 'Please set an event name' ) ;
214
+ } ) ;
215
+ }
211
216
212
217
var args = [ action ] ;
213
218
You can’t perform that action at this time.
0 commit comments