Fix #84
This commit is contained in:
parent
6e30a3eb70
commit
006b65d790
@ -50,7 +50,7 @@ export class BotSettingsComponent implements OnInit {
|
|||||||
// Add keyword to database
|
// Add keyword to database
|
||||||
if (value && !this.keywords.includes({ name: value })) {
|
if (value && !this.keywords.includes({ name: value })) {
|
||||||
console.log('Added: ' + value);
|
console.log('Added: ' + value);
|
||||||
this.botService.createKeyword(value).subscribe((result) => {
|
this.botService.createKeyword(value.toLowerCase()).subscribe((result) => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ export class BotSettingsComponent implements OnInit {
|
|||||||
const value = (event.value || '').trim();
|
const value = (event.value || '').trim();
|
||||||
|
|
||||||
// Add share to database
|
// Add share to database
|
||||||
if (value && !this.shares.includes({ symbol: value })) {
|
if (value && !this.shares.includes({ symbol: value.toLowerCase() })) {
|
||||||
console.log('Added: ' + value);
|
console.log('Added: ' + value);
|
||||||
this.botService.createShare(value).subscribe((result) => {
|
this.botService.createShare(value).subscribe((result) => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user