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; }