Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Sep 28, 2023
1 parent b0a42bc commit 3e76a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isArray } from '@ember/array';
import getWithDefault from '../utils/get-with-default';

export default class NotificationsService extends EmberNotificationsService {
serverError(error, fallbackMessage = 'Oops! Something went wrong with your request.', options = {}) {
serverError(error, fallbackMessage = 'Oops! Something went wrong with your request.', options = {}) {
if (isArray(error.errors)) {
const errors = getWithDefault(error, 'errors');
const errorMessage = getWithDefault(errors, '0', fallbackMessage);
Expand Down

0 comments on commit 3e76a90

Please sign in to comment.