Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix(webserver): Fix custom value events
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Jun 21, 2020
1 parent 5b33ae9 commit 51eeb06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webserver/events/customField/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.exec = async data => {
const removed = !data.oldData.value;
switch (data.customField.type) {
case 'checkbox':
resultData.title = _(`webhooks.customfielditem_checkbox_${!removed}`, {
resultData.title = _(`webhooks.customfielditem_checkbox_${removed}`, {
member: data.invoker.webhookSafeName,
card: data.util.cutoffText(data.card.name, 50),
customField: data.util.cutoffText(data.customField.name, 50)
Expand Down Expand Up @@ -93,7 +93,7 @@ exports.exec = async data => {
});
break;
case 'list':
resultData.title = _(`webhooks.customfielditem_${!removed ? 'update' : 'remove'}`, {
resultData.title = _(`webhooks.customfielditem_${data.oldData.idValue ? 'update' : 'remove'}`, {
member: data.invoker.webhookSafeName,
card: data.util.cutoffText(data.card.name, 50),
customField: data.util.cutoffText(data.customField.name, 50)
Expand Down

0 comments on commit 51eeb06

Please sign in to comment.