Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranMn committed Dec 16, 2024
1 parent b3f60ce commit e530acf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export const GoogleFilePicker = ({
.addView(google.picker.ViewId.SPREADSHEETS)
.setOAuthToken(accessToken)
.setCallback((response) => {
if (
response.action !== google.picker.Action.PICKED ||
!response.docs[0]
) {
if (response.action !== "picked" || !response.docs?.[0]) {
onUserChoice(null);
return;
}
Expand Down

0 comments on commit e530acf

Please sign in to comment.