This commit is contained in:
kevinpauer 2022-04-28 20:33:58 +02:00
parent 6e30a3eb70
commit 006b65d790

View File

@ -50,7 +50,7 @@ export class BotSettingsComponent implements OnInit {
// Add keyword to database
if (value && !this.keywords.includes({ name: value })) {
console.log('Added: ' + value);
this.botService.createKeyword(value).subscribe((result) => {
this.botService.createKeyword(value.toLowerCase()).subscribe((result) => {
console.log(result);
});
}
@ -80,7 +80,7 @@ export class BotSettingsComponent implements OnInit {
const value = (event.value || '').trim();
// Add share to database
if (value && !this.shares.includes({ symbol: value })) {
if (value && !this.shares.includes({ symbol: value.toLowerCase() })) {
console.log('Added: ' + value);
this.botService.createShare(value).subscribe((result) => {
console.log(result);