Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -36,7 +36,7 @@ import {
|
||||
type GraphingLatestValueRow,
|
||||
type GraphingSeriesPoint
|
||||
} from '@/lib/graphing/series';
|
||||
import { ApiError } from '@/lib/api';
|
||||
import { ApiError, ensureTickerAutomation } from '@/lib/api';
|
||||
import {
|
||||
formatCurrencyByScale,
|
||||
formatPercent,
|
||||
@@ -422,6 +422,12 @@ function GraphingPageContent() {
|
||||
onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
const nextTickers = normalizeGraphTickers(tickerInput);
|
||||
if (nextTickers[0]) {
|
||||
void ensureTickerAutomation({
|
||||
ticker: nextTickers[0],
|
||||
source: 'graphing'
|
||||
});
|
||||
}
|
||||
replaceGraphState({ tickers: nextTickers.length > 0 ? nextTickers : [...graphState.tickers] });
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user