Commit 99defdae authored by Tom Quirk's avatar Tom Quirk

Address reviewer feedback

- Use `this` for object reference in function
parent 351de0d1
......@@ -7,7 +7,7 @@ const store = {
error: '',
},
setErrorMessage(errorMessage) {
store.state.error = errorMessage;
this.state.error = errorMessage;
},
};
......@@ -23,7 +23,6 @@ const initJiraFormHandlers = () => {
const { responseJSON: { error = fallbackErrorMessage } = {} } = res || {};
store.setErrorMessage(error);
// eslint-disable-next-line no-alert
alert(error);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment