Commit b1dd91b2 authored by Scott Hampton's avatar Scott Hampton

Refactor parsedTECHSCode check

Refactoring how we check if we should return
null in the parsedTECHSCode computed prop.
parent d61031cc
...@@ -30,12 +30,7 @@ export default { ...@@ -30,12 +30,7 @@ export default {
return null; return null;
} }
const splitCode = this.issue.code.split('.'); return this.issue.code.split('.')[4] || null;
if (splitCode.length < 5) {
return null;
}
return this.issue.code.split('.')[4];
}, },
learnMoreUrl() { learnMoreUrl() {
if (this.parsedTECHSCode === null) { if (this.parsedTECHSCode === null) {
......
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