Frontend #107

Merged
H4CK3R-01 merged 7 commits from frontend into main 2022-04-28 21:34:40 +00:00
Showing only changes of commit 006b65d790 - Show all commits

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);