refactor: set null string '' as the null value of user token

This commit is contained in:
Levi Yan
2024-10-23 12:54:50 +08:00
parent 4ded936bf7
commit 0a31591150
2 changed files with 9 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ export default class DSHome {
case 'getUserToken':
const userToken = this.context.globalState.get('devstarUserToken')
if (userToken === undefined) {
panel.webview.postMessage({ command: 'getUserToken', data: {userToken: 'none'}})
panel.webview.postMessage({ command: 'getUserToken', data: {userToken: ''}})
break;
} else {
panel.webview.postMessage({ command: 'getUserToken', data: {userToken: userToken}})