Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ui/src/components/Language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Language = (props: Props) => {
const installLanguage = async () => {
setLoading(true);
try {
if (languageBundlePath) {
if (languageHash) {
await client!.languages.byAddress(languageHash);

await getLanguages();
Expand Down Expand Up @@ -211,16 +211,16 @@ const Language = (props: Props) => {
<j-flex a="center" gap="200">
<j-button
variant="link"
onClick={() => setInstallLanguageModalOpen(false)}
onClick={() => setPublishLanguageModalOpen(false)}
>
Cancel
</j-button>
<j-button
variant="primary"
onClick={installLanguage}
onClick={publishLanguage}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is for installing a language, it should not be calling publish right?

loading={loading}
>
Install
Publish
</j-button>
</j-flex>
</j-box>
Expand Down
6 changes: 1 addition & 5 deletions ui/src/components/TrustAgent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ const TrustAgent = (props: Props) => {
state: { client },
} = useContext(Ad4minContext);

const [opened, setOpened] = useState(false);

useEffect(() => {
setOpened(true);
}, []);
const [opened, setOpened] = useState(true);

const addTrustedAgent = async () => {
let agents = await client!.runtime.addTrustedAgents([props.candidate]);
Expand Down