Skip to content

Commit

Permalink
Fixed issue with entering amount when sending cashtokens
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Jul 14, 2024
1 parent 9579db2 commit 03df120
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src-capacitor/ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 161;
CURRENT_PROJECT_VERSION = 163;
DEVELOPMENT_TEAM = 89X576BZBF;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
Expand All @@ -387,7 +387,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/AppRelease.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 161;
CURRENT_PROJECT_VERSION = 163;
DEVELOPMENT_TEAM = 89X576BZBF;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
Expand Down
3 changes: 3 additions & 0 deletions src/pages/transaction/send.vue
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ export default {
return this.$store.getters['darkmode/getStatus']
},
denomination () {
if (this.isSLP || this.isCashToken) {
return 'BCH'
}
return this.$store.getters['global/denomination']
},
theme () {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/denomination-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function parseAssetDenomination (denomination, asset, isInput = false, su
).substring(0, setSubStringMaxLength)
if (asset.thousandSeparator) {
newBalance = parseFloat(newBalance).toLocaleString('en-US', {
maximumFractionDigits: decimal
maximumFractionDigits: asset.decimal
})
}
completeAsset = `${newBalance} ${asset.symbol}`
Expand Down

0 comments on commit 03df120

Please sign in to comment.