Skip to content

Commit

Permalink
fix: null check (#4811)
Browse files Browse the repository at this point in the history
Signed-off-by: Iuri Pereira <iuricmp@gmail.com>
  • Loading branch information
iuricmp committed Mar 4, 2024
1 parent edf8867 commit 5810400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/packages/screens/settings/ThemeEditor/ThemeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const BodyFileThemeEditor: React.FC<{}> = withInAppNotification(({ showNotificat
onPress={async () => {
try {
const document = await openThemeColorFile()
if (!document) {
if (!document || !document.name) {
return
}
const themeColors = JSON.parse(await importColorThemeFileFromStorage(document.uri))
Expand Down

0 comments on commit 5810400

Please sign in to comment.