Skip to content

Commit

Permalink
refactor: requestIOPermission
Browse files Browse the repository at this point in the history
  • Loading branch information
mastro993 committed Jan 24, 2024
1 parent cc11ea9 commit 6b421e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/utils/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const requestIOPermission = async (
permission: RNPermissions.Permission,
rationale?: RNPermissions.Rationale
): Promise<boolean> => {
if (await checkIOPermission(permission)) {
const checkResult = await checkIOPermission(permission);
if (checkResult) {
return true;
}

Expand Down

0 comments on commit 6b421e6

Please sign in to comment.