Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Nov 16, 2023
1 parent 5ffea9d commit 40528cb
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,15 @@ const instructions = () => ({
)[liqudityTier.tier]
const suggestedUntrusted = liqudityTier.tier === 'UNTRUSTED'

const suggestedFormattedPreset: ListingArgsFormatted = Object.keys(
suggestedPreset
).length
? getFormattedListingValues({
tokenIndex: args.tokenIndex,
name: args.name,
oracle: args.oracle,
...suggestedPreset,
})
: ({} as ListingArgsFormatted)
const suggestedFormattedPreset: ListingArgsFormatted =
Object.keys(suggestedPreset).length && !suggestedUntrusted
? getFormattedListingValues({
tokenIndex: args.tokenIndex,
name: args.name,
oracle: args.oracle,
...suggestedPreset,
})
: ({} as ListingArgsFormatted)

const invalidKeys: (keyof ListingArgsFormatted)[] = Object.keys(
suggestedPreset
Expand Down Expand Up @@ -1566,7 +1565,7 @@ const DisplayNullishProperty = ({
{currentValue}
</div>
</div>
{<div className="mx-1">/</div>}
{currentValue && <div className="mx-1">/</div>}
<div className="flex">
<div className="text-orange">{value}</div>
</div>
Expand Down

0 comments on commit 40528cb

Please sign in to comment.