Skip to content

Commit

Permalink
fix: fix refreshing after granting local permission
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Nov 7, 2023
1 parent 09e1e8f commit fb47652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function LocalFilePermision({ onSolve }: { onSolve: () => void }) {
Grant permission
</BaseButton>
<div className='mb-4 mt-2 flex gap-1 text-xs text-rose-700'>
<span className='icon-[mdi--information-outline] -mt-1 h-6 w-6' />
<span className='icon-[mdi--information-outline] h-4 w-4 shrink-0' />
<div>
<div>
We have to ask you to grant permission to read your ROMs again, even though you have already done this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export function HomeScreen() {

async function retry() {
setIsRetrying(true)
if (platformsState.error) {
if (platformsState.status !== 'success') {
await loadPlatformsFromRemote()
}
if (romsState.error) {
if (romsState.status !== 'success') {
await loadRomsFromRemote()
}
}
Expand Down

0 comments on commit fb47652

Please sign in to comment.