Skip to content

Commit

Permalink
devtools: only show gas if there is any
Browse files Browse the repository at this point in the history
  • Loading branch information
JerwuQu committed Aug 21, 2022
1 parent c23bdc5 commit acab223
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devtools/web/src/components/devtools/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ export class Wasm4Devtools extends LitElement {
<h4>fps</h4>
<span class="info-box text-primary">${fps}</span>
</section>
${gasUsed > 0 ? html`
<section class="inline-section">
<h4>gas</h4>
<span class="info-box text-primary">${gasUsed}</span>
</section>
` : ''}
<section class="cart-size-wrapper">
<h4>cartridge size ${wasmBufferByteLen > MAX_CART_SIZE ? `⚠️` : ''}</h4>
<div class="size-box">
Expand Down

0 comments on commit acab223

Please sign in to comment.