Skip to content

Commit

Permalink
♻️ Fix value on initialization banner click
Browse files Browse the repository at this point in the history
  • Loading branch information
massao committed Aug 21, 2019
1 parent da50e27 commit 2e5a4f9
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,8 +1,10 @@
import React from 'react';
import 'numeral/locales';
import FlashMessage from '../toolbox/flashMessage/flashMessage';
import FlashMessageHolder from '../toolbox/flashMessage/holder';
import externalLinks from '../../constants/externalLinks';
import routes from '../../constants/routes';
import { formatAmountBasedOnLocale } from '../../utils/formattedNumber';

const InitializationMessage = ({
account,
Expand All @@ -21,7 +23,8 @@ const InitializationMessage = ({
);

const onButtonClick = () => {
history.push(`${routes.send.path}?recipient=${account.address}&amount=0.1&reference=Account initialization`);
const amount = formatAmountBasedOnLocale({ value: 0.1 });
history.push(`${routes.send.path}?recipient=${account.address}&amount=${amount}&reference=Account initialization`);
};

return FlashMessageHolder.addMessage((
Expand Down

0 comments on commit 2e5a4f9

Please sign in to comment.