Skip to content

Commit

Permalink
feat: add conditional label
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth committed Jan 9, 2025
1 parent 2729492 commit 7846272
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function RateInput() {
const updateRate = useUpdateActiveRate()
const updateLimitRateState = useSetAtom(updateLimitRateAtom)
const executionPrice = useAtomValue(executionPriceAtom)
const { limitPriceLocked, isUsdValuesMode } = useAtomValue(limitOrdersSettingsAtom)
const { limitPriceLocked, isUsdValuesMode, partialFillsEnabled } = useAtomValue(limitOrdersSettingsAtom)
const updateLimitOrdersSettings = useSetAtom(updateLimitOrdersSettingsAtom)

const executionPriceUsdValue = useExecutionPriceUsdValue(executionPrice)
Expand Down Expand Up @@ -289,7 +289,7 @@ export function RateInput() {
)}
</b>
<span>
Estimated fill price
{partialFillsEnabled ? 'Est. partial fill price' : 'Estimated fill price'}
<HelpTooltip text="Network costs (incl. gas) are covered by filling your order when the market price is better than your limit price." />
</span>
</styledEl.EstimatedRate>
Expand Down

0 comments on commit 7846272

Please sign in to comment.