Skip to content

Commit

Permalink
ternary operator across multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Aug 19, 2024
1 parent a90d9fd commit e091b5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/new-user-experience/onboarding/onboarding-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ export const OnboardingApp = () => {
<BusinessLocation />
{ settings.locations.length ? (
<SquareSettingsSaveButton
// eslint-disable-next-line
// eslint-disable-next-line @wordpress/i18n-no-variables
label={ __(
settings.locations.length === 1 ? 'Confirm' : 'Next',
settings.locations.length === 1
? 'Confirm'
: 'Next',
'woocommerce-square'
) }
afterSaveLabel={ __(
Expand Down

0 comments on commit e091b5a

Please sign in to comment.