Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wataru committed Jun 25, 2023
1 parent f0bc01a commit b5dd079
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion client/demo/dist/index.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions client/demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"@dannadori/voice-changer-client-js": "^1.0.148",
"@dannadori/voice-changer-client-js": "^1.0.149",
"@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-brands-svg-icons": "^6.4.0",
"@fortawesome/free-regular-svg-icons": "^6.4.0",
Expand Down
4 changes: 2 additions & 2 deletions client/lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dannadori/voice-changer-client-js",
"version": "1.0.148",
"version": "1.0.149",
"description": "",
"main": "dist/index.js",
"directories": {
Expand Down
7 changes: 5 additions & 2 deletions client/lib/src/hooks/useClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@ export const useClient = (props: UseClientProps): ClientState => {
}
const loadCache = async () => {
const _setting = await getItem("clientSetting") as ClientSetting
setSetting(_setting)
serverSetting.reloadServerInfo()
if (_setting) {
setSetting(_setting)
serverSetting.reloadServerInfo()

}
}
loadCache()
}, [voiceChangerClient])
Expand Down

0 comments on commit b5dd079

Please sign in to comment.