Skip to content

Commit

Permalink
Упрощения условия
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Feb 10, 2021
1 parent 212fe7b commit 264d787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Handler {
if (copyright) {
const group = await getById(this.VK.api, copyright.id);

builder.setFooter(`${builder.footer?.text || ""}${builder.footer?.text ? " • " : ""}Источник: ${copyright.name}`, builder.footer?.iconURL || group?.photo_50);
builder.setFooter(`${builder.footer?.text ? `${builder.footer.text} • ` : ""}Источник: ${copyright.name}`, builder.footer?.iconURL || group?.photo_50);
}
}
}

0 comments on commit 264d787

Please sign in to comment.