mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 11:00:09 -06:00
maybe if we await here?
This commit is contained in:
@@ -32,8 +32,8 @@ export const mutateServer = async (server: JellifyServer | undefined) => {
|
||||
export const mutateServerCredentials = async (credentials?: JellyfinCredentials) => {
|
||||
|
||||
if (!_.isUndefined(credentials)) {
|
||||
return Keychain.setInternetCredentials((await fetchServer()).url, credentials.username, credentials.accessToken!);
|
||||
return await Keychain.setInternetCredentials((await fetchServer()).url, credentials.username, credentials.accessToken!);
|
||||
}
|
||||
|
||||
return Keychain.resetInternetCredentials((await fetchServer()).url);
|
||||
return await Keychain.resetInternetCredentials((await fetchServer()).url);
|
||||
}
|
||||
Reference in New Issue
Block a user