Skip to content

Commit

Permalink
Comment usage of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Feb 28, 2024
1 parent 28ea31f commit 459c677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/HeaderWithBackButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ function HeaderWithBackButton({
isCentralPaneSettings && styles.headerBarDesktopHeight,
shouldShowBorderBottom && styles.borderBottom,
shouldShowBackButton && styles.pl2,
// progressBarPercentage can be 0 which would
// be falsey, hence using !== undefined explicitly
progressBarPercentage !== undefined && styles.pl2,
shouldOverlay && StyleSheet.absoluteFillObject,
]}
Expand Down

0 comments on commit 459c677

Please sign in to comment.