Skip to content

Commit

Permalink
fix: multiple qr code scans and display token name when added (#43)
Browse files Browse the repository at this point in the history
* update to scan once

* display token name when added
  • Loading branch information
joeldavidw authored Jul 24, 2024
1 parent 68de3d7 commit 23d7899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct AddTokenView: View {
if !unableToAccessCamera {
CodeScannerView(
codeTypes: [.qr],
scanMode: .oncePerCode,
scanMode: .once,
scanInterval: 0.1,
shouldVibrateOnSuccess: false,
isPaused: showTokenManualAddSheet,
Expand Down Expand Up @@ -99,7 +99,7 @@ struct AddTokenView: View {
dismiss()

AlertKitAPI.present(
title: "Successfully added token",
title: "Successfully added \(!newToken.issuer.isEmpty ? newToken.issuer : newToken.account)",
icon: .done,
style: .iOS17AppleMusic,
haptic: .success
Expand Down

0 comments on commit 23d7899

Please sign in to comment.