From 2910c70a8ac3536e9ad7e330b918fc060cd0bbce Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Sat, 26 Nov 2022 09:25:14 -0600 Subject: [PATCH] refactor: replace funAnimalName with getPeerName in useRoom --- src/components/Room/useRoom.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Room/useRoom.ts b/src/components/Room/useRoom.ts index ff60ed3..8da6a5c 100644 --- a/src/components/Room/useRoom.ts +++ b/src/components/Room/useRoom.ts @@ -2,7 +2,6 @@ import { useContext, useEffect, useMemo, useState } from 'react' import { BaseRoomConfig } from 'trystero' import { TorrentRoomConfig } from 'trystero/torrent' import { v4 as uuid } from 'uuid' -import { funAnimalName } from 'fun-animal-names' import { ShellContext } from 'contexts/ShellContext' import { SettingsContext } from 'contexts/SettingsContext' @@ -224,7 +223,7 @@ export function useRoom( const peerExist = peerIndex !== -1 showAlert( `${ - peerExist ? funAnimalName(peerList[peerIndex].userId) : 'Someone' + peerExist ? getPeerName(peerList[peerIndex].userId) : 'Someone' } has left the room`, { severity: 'warning',