File tree Expand file tree Collapse file tree
Features/QRCodeScanner/Sources/Presentation/Sources/Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ struct MainTabCoordinator {
153153 }
154154
155155 case . qrScannerPresented:
156- state. destination = . qrScan( QRCodeScanFeature . State ( ) )
156+ state. destination = . qrScan( QRCodeScanFeature . State ( user : state . user ) )
157157 return . none
158158
159159 case . presentPermissionAlert:
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import os
1414struct QRCodeScanFeature {
1515 @ObservableState
1616 struct State {
17+ let user : User
18+
1719 var isLightOn : Bool = false
1820 var isLoading : Bool = false
1921
@@ -105,11 +107,12 @@ struct QRCodeScanFeature {
105107 // MARK: - Scanning Flow
106108 case . codeScanned( let urlString) :
107109 guard state. isLoading == false , state. isCameraActive else { return . none }
110+ let user = state. user
108111 state. isLoading = true
109112 Logger . presentation. debug ( " QR 스캔 감지: \( urlString) " )
110113
111114 return . run { send in
112- await send ( . parseQRResult( Result { try await qrScannerClient. parse ( urlString) } ) )
115+ await send ( . parseQRResult( Result { try await qrScannerClient. parse ( urlString, user ) } ) )
113116 }
114117
115118 case let . parseQRResult( . success( parsed) ) :
You can’t perform that action at this time.
0 commit comments