Skip to content

Commit

Permalink
Merge branch 'improvement/fix-mutation-status-issue-useMutationsHandl…
Browse files Browse the repository at this point in the history
…er' into q/1.0
  • Loading branch information
bert-e committed Jun 4, 2024
2 parents 8250a7c + 6e05d40 commit af8f715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/toast/useMutationsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ export const useMutationsHandler = <

const mainMutationDesc: GetDescriptionBuilder<MainMutationType> = {
data: mainMutation.mutation?.data,
status: DescriptionBuilderStatus.Success,
status: mainMutation.mutation?.isSuccess
? DescriptionBuilderStatus.Success
: DescriptionBuilderStatus.Error,
name: mainMutation.name,
} as GetDescriptionBuilder<MainMutationType>;
const descriptionBuilders = [
Expand Down

0 comments on commit af8f715

Please sign in to comment.