Skip to content

Commit

Permalink
use nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkzie2 committed Sep 4, 2024
1 parent 1c1b5da commit 37694a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImportSpreadsheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ImportSpreedsheet({backTo, goTo}: ImportSpreedsheetProps) {
if (!validateFile(file)) {
return;
}
let fileURI = file.uri || URL.createObjectURL(file);
let fileURI = file.uri ?? URL.createObjectURL(file);
if (!fileURI) {
return;
}
Expand Down

0 comments on commit 37694a3

Please sign in to comment.