Skip to content

Commit

Permalink
stake-ui: Display converted amount for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Feb 2, 2021
1 parent 3fbb3e2 commit b53bfa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/stake-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@project-serum/stake-ui",
"version": "0.0.1-beta.2",
"private": true,
"homepage": "https://project-serum.github.io/serum-ts/stake-ui/",
"homepage": ".",
"dependencies": {
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
Expand Down Expand Up @@ -37,7 +37,7 @@
"web-vitals": "^0.2.4"
},
"scripts": {
"deploy:app": "rm -rf ../../docs/stake-ui && mv ./build ../../docs/stake-ui/",
"deploy:app": "gh-pages -d build/ --repo [email protected]:project-serum/stake-ui.git",
"start": "react-scripts start",
"build": "react-scripts build",
"test:ui": "react-scripts test",
Expand Down
4 changes: 2 additions & 2 deletions packages/stake-ui/src/components/common/MyNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function DepositDialog(props: DepositDialogProps) {
) => {
const amount = fromDisplay(displayAmount, mintAccount.decimals);
enqueueSnackbar(
`Depositing ${amount} ${toDisplayLabel(
`Depositing ${displayAmount} ${toDisplayLabel(
registrar.account.mint,
)} from ${from.toString()}`,
{
Expand Down Expand Up @@ -522,7 +522,7 @@ function WithdrawDialog(props: WithdrawDialogProps) {
) => {
const amount = fromDisplay(displayAmount, mintAccount.decimals);
enqueueSnackbar(
`Withdrawing ${amount} ${toDisplayLabel(
`Withdrawing ${displayAmount} ${toDisplayLabel(
registrarAccount.mint,
)} to ${from.toString()}`,
{
Expand Down

0 comments on commit b53bfa9

Please sign in to comment.