Skip to content

Commit 45b606a

Browse files
committed
fix: change default value of fallbackToLastPlayed
1 parent 0de7246 commit 45b606a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export class SpotifyClient {
5858
return responseData?.access_token;
5959
};
6060

61-
getCurrentlyPlaying = async (options: CurrentlyPlayingOptions = {}) => {
62-
const { fallbackToLastPlayed = false } = options;
61+
getCurrentlyPlaying = async ({
62+
fallbackToLastPlayed = false
63+
}: CurrentlyPlayingOptions = {}) => {
6364
try {
6465
const accessToken = await this._genAccesToken();
6566
const headers = { Authorization: `Bearer ${accessToken}` };

0 commit comments

Comments
 (0)