chore: formatting

This commit is contained in:
Kieran 2023-11-03 14:30:54 +09:00
parent 930b493a12
commit 0ebd2f167a
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -11,11 +11,13 @@ import AsyncButton from "Element/AsyncButton";
import messages from "./messages";
const Blasters = [
"wss://nostr.mutinywallet.com"
];
const Blasters = ["wss://nostr.mutinywallet.com"];
export async function saveRelays(system: SystemInterface, publisher: EventPublisher | undefined, relays: Array<FullRelaySettings> | Record<string, RelaySettings>) {
export async function saveRelays(
system: SystemInterface,
publisher: EventPublisher | undefined,
relays: Array<FullRelaySettings> | Record<string, RelaySettings>,
) {
if (publisher) {
const ev = await publisher.relayList(relays);
await system.BroadcastEvent(ev);
@ -33,7 +35,6 @@ const RelaySettingsPage = () => {
return system.Sockets.filter(a => relays.item[a.address] === undefined);
}, [relays]);
const handleNewRelayChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const inputValue = event.target.value;
const protocol = window.location.protocol;