Skip to content

Commit 503a0b4

Browse files
authored
[Fix]Deeplink UI tests (#793)
1 parent 2c94228 commit 503a0b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

DemoApp/Sources/Views/CallView/CallingView/DemoCallingViewModifier.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,15 @@ struct DemoCallingViewModifier: ViewModifier {
4646

4747
// We may get in this situation when launching the app from a
4848
// deeplink.
49-
5049
if deeplinkInfo.callId.isEmpty {
51-
joinCallIfNeeded(with: self.text.wrappedValue, callType: deeplinkInfo.callType)
50+
joinCallIfNeeded(with: self.text.wrappedValue, callType: callType)
5251
} else {
5352
self.text.wrappedValue = deeplinkInfo.callId
5453
joinCallIfNeeded(
5554
with: self.text.wrappedValue,
56-
callType: deeplinkInfo.callType
55+
callType: callType
5756
)
5857
}
59-
callType = deeplinkInfo.callType
6058
}
6159
.onChange(of: viewModel.callingState) { callingState in
6260
switch callingState {

0 commit comments

Comments
 (0)