| Total Complexity | 3 |
| Complexity/F | 1 |
| Lines of Code | 20 |
| Function Count | 3 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 2 | export default { |
||
| 3 | mixins: [Shopware.Mixin.getByName('notification')], |
||
|
|
|||
| 4 | |||
| 5 | methods: { |
||
| 6 | showSaasErrors(errorResponse) { |
||
| 7 | Shopware.Service('saasErrorHandler') |
||
| 8 | .handleErrorResponse(errorResponse, this) |
||
| 9 | .forEach((notification) => { |
||
| 10 | this.createNotificationError(notification); |
||
| 11 | }); |
||
| 12 | }, |
||
| 13 | |||
| 14 | showSingleSaasError(error) { |
||
| 15 | this.createNotificationError( |
||
| 16 | Shopware.Service('saasErrorHandler') |
||
| 17 | .handleError(error, this) |
||
| 18 | ); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | }; |
||
| 22 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.