Skip to content

Commit

Permalink
Bugfix crashing for users w/o permissions to see revenuw (minmatarfle…
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulmim authored Oct 15, 2024
1 parent 0cfe090 commit 3fcf30c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/app/.astro/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1727915493074
"lastUpdateCheck": 1729022635399
}
}
2 changes: 1 addition & 1 deletion frontend/app/src/pages/alliance.astro
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const leading_text = t('alliance.leading_text');
</TextBox>
</Flexblock>

<Wrapper padding_inline='0' padding_block='0' max_width='var(--max-text-width)'>
<Wrapper padding_inline='0' padding_block='0' max_width='48rem'>
<BlockList gap='var(--space-2xl)'>
{posts.map(post =>
<FixedFluid width='64px'>
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/pages/intel/moons/[system_name].astro
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ const page_title = `${system_name} ${t('moons')}`;
<Flexblock gap='0' class="[ w-full ]">
<span class="[ text-[var(--highlight)] ]">{moon.name}</span>
{moon.scanned ?
((moon?.monthly_revenue ?? 0) >= 0) ?
((moon?.monthly_revenue ?? 0) > 0) ?
<small data-tippy-content={number_name(moon.monthly_revenue as number, lang)}>
<FlexInline class="[ !items-baseline ]" gap='var(--space-3xs)'><Square color='green' /> {(moon.monthly_revenue as number).toLocaleString()} ISK</FlexInline>
<FlexInline class="[ !items-baseline ]" gap='var(--space-3xs)'><Square color='green' /> {(moon?.monthly_revenue ?? '').toLocaleString()} ISK</FlexInline>
</small> :
<small><FlexInline class="[ !items-baseline ]" gap='var(--space-3xs)'><Square color='green' /> {t('scanned')}</FlexInline></small>
:
Expand Down

0 comments on commit 3fcf30c

Please sign in to comment.