Skip to content

Commit c4dbaa6

Browse files
committed
fix(Mobizon): catch error when recived no data
1 parent 96994f0 commit c4dbaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transporters/Mobizon.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export default class Mobizon implements ProviderI {
4141
};
4242
const { data } = await this._send(params);
4343
const res = {
44-
messageId: data.messageId,
45-
rawResponse: data,
44+
messageId: data ? data.messageId : '',
45+
rawResponse: data || {},
4646
};
4747
return res;
4848
}

0 commit comments

Comments
 (0)