Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fiat currency conversion on the amount field #779

Merged
merged 2 commits into from
Apr 1, 2021

Conversation

begonaalvarezd
Copy link
Member

Description of change

Add fiat currency conversion on the amount field
image

Links to any relevant issues

Related to #763 (not sure we will implement sending fiat directly).

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Electron Linux

Change checklist

Add an x to the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@@ -100,7 +116,7 @@
<amount-input class:disabled class="relative block {classes}" on:keydown={handleKey}>
<Input
{error}
label={label || locale('general.amount')}
label={fiatAmount ? `${fiatAmount} ${profileCurrency}` : label || locale('general.amount')}
Copy link
Contributor

Choose a reason for hiding this comment

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

This would probably be better as {fiatAmount !== null otherwise it doesn't show when the amount is zero. e.g. 111i still says Amount

@cvarley100 cvarley100 merged commit e3f82e7 into develop Apr 1, 2021
@cvarley100 cvarley100 deleted the feat/amount-fiat branch April 1, 2021 18:31
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.

3 participants