Skip to content

Commit

Permalink
chore: Fix default value formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Sep 11, 2023
1 parent 731bde4 commit 7109f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/demos/batching/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export default function BuilderPatternDemoPage() {
<pre>
<code>
{/* Aligning the decimals */}
Lat {latStr[0].padStart(4) + '.' + latStr[1]}
Lat {latStr[0].padStart(4) + '.' + (latStr[1] ?? '00')}
{'\n'}
Lng {lngStr[0].padStart(4) + '.' + lngStr[1]}
Lng {lngStr[0].padStart(4) + '.' + (lngStr[1] ?? '00')}
</code>
</pre>
</main>
Expand Down

0 comments on commit 7109f65

Please sign in to comment.