Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahimsyah committed Apr 16, 2024
1 parent 62de4a0 commit cb55656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const Dashboard = () => {
<Box sx={{ display: 'grid', gap: 2, mt: 2, gridTemplateColumns: '1fr 1fr' }}>
{actions.data?.map((action, index) => {
const state = actionStates[index]
const isLoading = state?.isLoading || mutationLoading[action.id]
const isLoading = state?.isFetching || mutationLoading[action.id]
return <ButtonCard
key={index}
id={index}
Expand Down Expand Up @@ -280,4 +280,4 @@ type ButtonCardProps = {

export const DashboardRoute = createLazyRoute('/dashboard')({
component: Dashboard
})
})

0 comments on commit cb55656

Please sign in to comment.