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 = { ...@@ -7,7 +7,7 @@ const store = {
error: '', error: '',
}, },
setErrorMessage(errorMessage) { setErrorMessage(errorMessage) {
store.state.error = errorMessage; this.state.error = errorMessage;
}, },
}; };
...@@ -23,7 +23,6 @@ const initJiraFormHandlers = () => { ...@@ -23,7 +23,6 @@ const initJiraFormHandlers = () => {
const { responseJSON: { error = fallbackErrorMessage } = {} } = res || {}; const { responseJSON: { error = fallbackErrorMessage } = {} } = res || {};
store.setErrorMessage(error); store.setErrorMessage(error);
// eslint-disable-next-line no-alert // eslint-disable-next-line no-alert
alert(error); 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