Explorar o código

fix username not updating when switching OneDrive accounts (#2538)

Shlomo Zalman Heigh %!s(int64=4) %!d(string=hai) anos
pai
achega
90589c3f1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/@uppy/provider-views/src/index.js

+ 1 - 1
packages/@uppy/provider-views/src/index.js

@@ -147,7 +147,7 @@ module.exports = class ProviderView {
           updatedDirectories = state.directories.concat([{ id, title: name }])
         }
 
-        this.username = this.username ? this.username : res.username
+        this.username = res.username || this.username
         this._updateFilesAndFolders(res, files, folders)
         this.plugin.setPluginState({ directories: updatedDirectories })
       },