Skip to content

Commit

Permalink
Merge remote-tracking branch 'fredrivett/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dodge committed Feb 26, 2021
2 parents 7ef3721 + 18121ac commit fb78066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/library/src/lib-components/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default /*#__PURE__*/<% if (version === 3) {%>defineComponent(<% } else i
changedBy() {
const { message } = this<% if (ts) { %> as SampleData<% } %>;
if (!message.action) return 'initialized';
return `${message?.action} ${message.amount ?? ''}`.trim();
return `${message.action} ${message.amount || ''}`.trim();
},
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion templates/single/src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default /*#__PURE__*/<% if (version === 3) {%>defineComponent(<% } else i
changedBy() {
const { message } = this<% if (ts) { %> as SampleData<% } %>;
if (!message.action) return 'initialized';
return `${message?.action} ${message.amount ?? ''}`.trim();
return `${message.action} ${message.amount || ''}`.trim();
},
},
methods: {
Expand Down

0 comments on commit fb78066

Please sign in to comment.