From ba675a22b711034ae80a568339478cd53005a165 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:57:36 +0700 Subject: [PATCH] minor fixes --- src/utils/hooks/useProfile.tsx | 1 - src/utils/parser.tsx | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/hooks/useProfile.tsx b/src/utils/hooks/useProfile.tsx index 91718e4b..46d75347 100644 --- a/src/utils/hooks/useProfile.tsx +++ b/src/utils/hooks/useProfile.tsx @@ -24,7 +24,6 @@ export function useProfile(pubkey: string, fallback?: string) { } }, { - staleTime: Infinity, refetchOnWindowFocus: false, refetchOnReconnect: false, }, diff --git a/src/utils/parser.tsx b/src/utils/parser.tsx index cbadc05b..e6ecc736 100644 --- a/src/utils/parser.tsx +++ b/src/utils/parser.tsx @@ -115,5 +115,8 @@ export function parser(event: any) { )); + // clean array + content.parsed = content.parsed.filter((el) => el !== "\n"); + return content; }