tangled
alpha
login
or
join now
stream.place
/
streamplace
74
fork
atom
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
set current id by default i guess
Natalie B.
2 months ago
af880d07
e39915dc
+3
1 changed file
expand all
collapse all
unified
split
js
app
components
settings
branding-admin.tsx
+3
js/app/components/settings/branding-admin.tsx
···
2
2
Button,
3
3
Input,
4
4
Text,
5
5
+
useStreamplaceStore,
5
6
useToast,
6
7
View,
7
8
zero,
···
18
19
const agent = usePDSAgent();
19
20
const fetchBranding = useFetchBranding();
20
21
const toast = useToast();
22
22
+
const currentBroadcasterDID = useStreamplaceStore((s) => s.broadcasterDID);
21
23
22
24
// state for form inputs
23
25
const [siteTitle, setSiteTitle] = useState("");
···
40
42
// load current branding on mount
41
43
useEffect(() => {
42
44
fetchBranding();
45
45
+
setBroadcasterDID(currentBroadcasterDID || "");
43
46
}, []);
44
47
45
48
const uploadText = async (key: string, value: string) => {