Skip to content

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Aug 22, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

// equal to the default USD fiat amount
let initialValue1: string | undefined
if (displayFiatCurrencyCode !== 'USD' && defaultFiatAmount == null) {
if (displayFiatCurrencyCode !== 'USD' && pluginDefaultFiatAmount == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change could be greatly simplified by declaring

const startingFiatAmount = isLightAccount ? DEFAULT_FIAT_AMOUNT_LIGHT_ACCOUNT : (defaultFiatAmount ?? DEFAULT_FIAT_AMOUNT)

Then replace all use of defaultFiatAmount or DEFAULT_FIAT_AMOUNT with startingFiatAmount

@Jon-edge Jon-edge enabled auto-merge August 23, 2024 23:05
@Jon-edge Jon-edge force-pushed the jon/light-default-min-trade branch from ed92c2f to 6aacce5 Compare August 24, 2024 00:14
@Jon-edge Jon-edge merged commit 27192d0 into develop Aug 24, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/light-default-min-trade branch August 24, 2024 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants