From d5b367d2720372dddccbca260b0cb5840b3a6af8 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Sat, 29 Oct 2022 18:00:47 +0100 Subject: [PATCH] Add fallback ip for the socket --- src/helpers/websocketClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/websocketClient.ts b/src/helpers/websocketClient.ts index 79f5c71..a0422bd 100644 --- a/src/helpers/websocketClient.ts +++ b/src/helpers/websocketClient.ts @@ -5,7 +5,7 @@ import { usePlayerDataStore } from "../store/playerDataStore"; import { useSongDataStore } from "../store/songDataStore"; import { getMapHashFromLevelId } from "./map/mapHelpers"; -const ip = useSettingsStore.getState().socketAddr; +const ip = useSettingsStore.getState().socketAddr || "localhost"; let cutData: any = []; cutData.saberA = {