Skip to content

Commit

Permalink
sonar cloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuck1 committed Jun 12, 2024
1 parent 3d6cdab commit 8ee780c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const LocationBasedAlertBanner = async ({
text: {
tsKey: { key, ns, text },
},
}) => ({ id, level, i18nKey: key, ns, defaultText: text })
}) => ({ id, level, ns, i18nKey: key, defaultText: text })
)
return formatted
} catch (error) {
handleError(error)
return handleError(error)
}
}
export default LocationBasedAlertBanner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const RenderWrapper = ({ lat, lon }: { lat: number; lon: number }) => {
const { data } = api.component.LocationBasedAlertBanner.useQuery({ lat, lon })

const item = data?.at(0)
if (!item) return 'No data returned by mock API...'
if (!item) {
return 'No data returned by mock API...'
}
const { id, ...props } = item
return (
<div style={{ marginTop: '4rem' }}>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/icon/iconList.ts

Large diffs are not rendered by default.

0 comments on commit 8ee780c

Please sign in to comment.