-
+ );
}
function balanceTimeEstimate() {
if (!info) return;
- return
-
-
-
-
+ return (
+
+
+
+
+
+ );
}
function streamEditor() {
@@ -288,7 +292,7 @@ export default function NostrProviderDialog({
return (
<>
{showEndpoints && streamEndpoints()}
- {showBalance&& currentBalance()}
+ {showBalance && currentBalance()}
{showEstimate && balanceTimeEstimate()}
{streamEditor()}
{forwardInputs()}
diff --git a/src/hooks/current-stream-feed.ts b/src/hooks/current-stream-feed.ts
index 20e5568..bf9fdc0 100644
--- a/src/hooks/current-stream-feed.ts
+++ b/src/hooks/current-stream-feed.ts
@@ -31,9 +31,9 @@ export function useCurrentStreamFeed(link: NostrLink, leaveOpen = false, evPrelo
const q = useRequestBuilder(sub);
return useMemo(() => {
- const hosting = [...q, ...(evPreload ? [evPreload] : [])].filter(
- a => getHost(a) === author || a.pubkey === author
- ).sort((a, b) => (b.created_at > a.created_at ? 1 : -1));
+ const hosting = [...q, ...(evPreload ? [evPreload] : [])]
+ .filter(a => getHost(a) === author || a.pubkey === author)
+ .sort((a, b) => (b.created_at > a.created_at ? 1 : -1));
return hosting.at(0);
}, [q]);
}
diff --git a/src/providers/zsz.ts b/src/providers/zsz.ts
index b3358e2..f867df3 100644
--- a/src/providers/zsz.ts
+++ b/src/providers/zsz.ts
@@ -171,9 +171,11 @@ export class NostrStreamProvider implements StreamProvider {
const u = `${this.url}${path}`;
const token = await pub.generic(eb => {
- return eb.kind(EventKind.HttpAuthentication)
+ return eb
+ .kind(EventKind.HttpAuthentication)
.content("")
- .tag(["u", u]).tag(["method", method])
+ .tag(["u", u])
+ .tag(["method", method])
.createdAt(unixNow() + Math.floor(TimeSync / 1000));
});
const rsp = await fetch(u, {