Skip to content

Commit

Permalink
fix: Ternary operator quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Oct 24, 2023
1 parent 53d4ba7 commit 0d11005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/soapbox/components/ui/accordion/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Accordion: React.FC<IAccordion> = ({ headline, children, menu, expanded =

return (
<div className='rounded-lg bg-white text-gray-900 shadow dark:bg-primary-800 dark:text-gray-100 dark:shadow-none'>
<Localized id={'accordion-' + expanded ? 'collapse' : 'expand'} attrs={{ title: true }}>
<Localized id={'accordion-' + (expanded ? 'collapse' : 'expand')} attrs={{ title: true }}>
<button
type='button'
onClick={handleToggle}
Expand Down

0 comments on commit 0d11005

Please sign in to comment.