Formatting / Intl

This commit is contained in:
2023-08-24 16:55:36 +01:00
parent 4b85a16904
commit 9c5d1ea55d
10 changed files with 134 additions and 73 deletions

View File

@ -6,7 +6,7 @@ import { SnortContext } from "./context";
* Gets a profile from cache or requests it from the relays
*/
export function useUserProfile(pubKey?: HexKey): MetadataCache | undefined {
const system = useContext(SnortContext);
const system = useContext(SnortContext);
return useSyncExternalStore<MetadataCache | undefined>(
h => {
if (pubKey) {