summaryrefslogtreecommitdiff
path: root/src/ui/ui_earnings.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-02 19:13:03 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-02 19:13:03 +0100
commit2218ef68056ebc5a3a416e2dd7e8e020fba60a4f (patch)
tree5d66166298ebef999956dd0386ee3b433d9507a2 /src/ui/ui_earnings.cpp
parentb65e7f01fb9be5d7ffe8b9c9c4c8eba67cd902ee (diff)
ui improvements
Diffstat (limited to 'src/ui/ui_earnings.cpp')
-rw-r--r--src/ui/ui_earnings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp
index 8f08bcb..cb6c848 100644
--- a/src/ui/ui_earnings.cpp
+++ b/src/ui/ui_earnings.cpp
@@ -36,6 +36,8 @@ void ui::destroy_earnings()
void ui::draw_earnings()
{
+ if (ImGui::InvalidCompanyInfoWarning()) return;
+
static s32 current_page = 0;
s32 max_page = ((statement->quarter_count) / 4);