Skip to content

Commit 91af80d

Browse files
committed
changed to only show loading message if there is not yet stock data
1 parent 9997d72 commit 91af80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/src/widgets/stockwidget/StockWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void StockWidget::setup() {
3838
void StockWidget::draw(bool force) {
3939
m_manager.setFont(DEFAULT_FONT);
4040
for (int8_t i = 0; i < m_stockCount; i++) {
41-
if (!m_initialized) {
41+
if (!m_initialized && !m_stocks[i].getSymbol().isEmpty() && m_stocks[i].getTicker().isEmpty()) {
4242
m_manager.selectScreen(i);
4343
m_manager.fillScreen(TFT_BLACK);
4444
m_manager.setFontColor(TFT_WHITE);

0 commit comments

Comments
 (0)