Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit 828d1df

Browse files
committed
fix(demo): small improvements
1 parent 1ce24c6 commit 828d1df

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/demo/TokenForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const TokenForm = ({
5454
value={token}
5555
onChange={({ target: { value } }) => memoToken(value)}
5656
></textarea>
57-
{token.length && <Token {...parseToken(token)} />}
57+
{token.length > 0 && <Token {...parseToken(token)} />}
5858
</fieldset>
5959
</form>
6060
)

web/index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h1>Distribute Aid: Chat</h1>
7474
returnPromise: true
7575
});
7676

77-
const loadChat = () => {
77+
const loadChat = async () => {
7878
loadJsAsync([
7979
"https://unpkg.com/react@16/umd/react.development.js",
8080
"https://unpkg.com/react-dom@16/umd/react-dom.development.js",
@@ -101,7 +101,6 @@ <h1>Distribute Aid: Chat</h1>
101101
) {
102102
loadChat();
103103
} else {
104-
console.log("not open");
105104
loadJsAsync(["./chatbutton.js"]).then(() => {
106105
DAChatButton(removeButton => {
107106
document.cookie = "DAChatopen=1";

0 commit comments

Comments
 (0)