Skip to content

Commit

Permalink
fix: iOS swift code snippets have double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Jan 2, 2024
1 parent 0c56fbe commit 93a7105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/feature-flags/FeatureFlagSnippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ export function iOSSnippet({ flagKey, multivariant, payload }: FeatureFlagSnippe

const flagFunction = multivariant ? 'getFeatureFlag' : 'isFeatureEnabled'

const variantSuffix = multivariant ? ` == 'example-variant'` : ''
const variantSuffix = multivariant ? ` == "example-variant"` : ''
return (
<CodeSnippet language={Language.Swift} wrap>
{`// In Swift
if (${clientSuffix}${flagFunction}('${flagKey}') ${variantSuffix}) {
if (${clientSuffix}${flagFunction}("${flagKey}") ${variantSuffix}) {
// do something
}
`}
Expand Down

0 comments on commit 93a7105

Please sign in to comment.