From 23d7899b2ea543eeb8251c6aa92eca92c1f4f0af Mon Sep 17 00:00:00 2001 From: Joel-David <4586209+joeldavidw@users.noreply.github.com> Date: Wed, 24 Jul 2024 20:10:33 +0700 Subject: [PATCH] fix: multiple qr code scans and display token name when added (#43) * update to scan once * display token name when added --- Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift b/Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift index bf0b5bb..f6371fb 100644 --- a/Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift +++ b/Chronos/App/Tabs/Tokens/AddToken/AddTokenView.swift @@ -26,7 +26,7 @@ struct AddTokenView: View { if !unableToAccessCamera { CodeScannerView( codeTypes: [.qr], - scanMode: .oncePerCode, + scanMode: .once, scanInterval: 0.1, shouldVibrateOnSuccess: false, isPaused: showTokenManualAddSheet, @@ -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