From e92c40d15a15903f72a5de31906bdb08fe14f90e Mon Sep 17 00:00:00 2001 From: Mat Sz Date: Mon, 29 Jan 2024 18:06:11 +0100 Subject: [PATCH] fix typo --- web/src/stores/NetworkStore.ts | 2 +- web/src/stores/Transfer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/stores/NetworkStore.ts b/web/src/stores/NetworkStore.ts index 9d221c7..ad64f08 100644 --- a/web/src/stores/NetworkStore.ts +++ b/web/src/stores/NetworkStore.ts @@ -260,7 +260,7 @@ export class NetworkStore { this.transfers.get(message.transferId)?.start(message.data); break; case MessageType.RTC_CANDIDATE: - this.transfers.get(message.transferId)?.addIceCandiate(message.data); + this.transfers.get(message.transferId)?.addIceCandidate(message.data); break; } } diff --git a/web/src/stores/Transfer.ts b/web/src/stores/Transfer.ts index 6fe58db..e284ef4 100644 --- a/web/src/stores/Transfer.ts +++ b/web/src/stores/Transfer.ts @@ -133,7 +133,7 @@ export class Transfer { : undefined; } - addIceCandiate(candidate: RTCIceCandidate) { + addIceCandidate(candidate: RTCIceCandidate) { this.validPeerConnection() ?.addIceCandidate(candidate) .catch(() => {});