Skip to content

Commit

Permalink
Fixed error in processing JPP QR code in main QR scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Dec 13, 2024
1 parent 43eb1d3 commit 2cd4232
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 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 = 187;
CURRENT_PROJECT_VERSION = 188;
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 = 187;
CURRENT_PROJECT_VERSION = 188;
DEVELOPMENT_TEAM = 89X576BZBF;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
Expand Down
20 changes: 18 additions & 2 deletions src/pages/qr/qr-reader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ export default {
loadingDialog.hide()
}, 700)
let query
if (value.includes('bitcoincash:q') || value.includes('bitcoincash:z') || value.includes('bitcoincash:p') || value.includes('bitcoincash:r') ||
value.includes('bchtest:q') || value.includes('bchtest:z') || value.includes('bchtest:p') || value.includes('bchtest:r')
) {
let query
let fallback = false
if (payProData.valid) {
query = {
Expand All @@ -298,7 +298,6 @@ export default {
query.fungible = payProData.paypro.fungible
}
// TODO - Check first if the requested token exists before routing
vm.$router.push({
name: 'transaction-send',
query
Expand Down Expand Up @@ -329,6 +328,23 @@ export default {
})
}
}
} else if (value.includes('bitcoincash:?r')) {
query = {
assetId: vm.$store.getters['assets/getAssets'][0].id,
network: 'BCH',
paymentUrl: String(value)
}
vm.$router.push({
name: 'transaction-send',
query
})
} else {
vm.$q.notify({
message: vm.$t('UnidentifiedQRCode'),
timeout: 800,
color: 'red-9',
icon: 'mdi-qrcode-remove'
})
}
} else if (parseWalletConnectUri(value)) {
const loadingDialog = vm.loadingDialog()
Expand Down

0 comments on commit 2cd4232

Please sign in to comment.