mg-library 1.0.524 → 1.0.525

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/functions.js +3 -3
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -253,10 +253,10 @@ function showToast(config) {
253
253
  });
254
254
  }
255
255
 
256
- export function showToastWithError(error) {
256
+ export function showToastWithError(error, subMessage) {
257
257
  let message = '(' + error.name + ')' + ' | ' + error.message;
258
- if(error.subMessage!=undefined)
259
- message += error.subMessage;
258
+ if (subMessage != undefined)
259
+ message += subMessage;
260
260
  if (error.response != undefined)
261
261
  if (error.response.data != undefined)
262
262
  if (error.response.data.code != undefined)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.524",
3
+ "version": "1.0.525",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {