Skip to content

Commit

Permalink
fix buggy redirect after clicking on cancel button in add more bed ty…
Browse files Browse the repository at this point in the history
…pes (#3710)

* fix buggy redirect after clicking on cancel button in add more bed types

* fix: deepscan issues
  • Loading branch information
Pragati1610 authored Oct 20, 2022
1 parent 10a877c commit 8f31371
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Components/Facility/BedCapacityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,7 @@ export const BedCapacityForm = (props: BedCapacityProps) => {
variant="contained"
type="button"
fullWidth
onClick={() =>
goBack(!id && `/facility/${facilityId}/doctor`)
}
onClick={() => goBack(!id && `/facility/${facilityId}`)}
>
Cancel
</Button>
Expand Down

0 comments on commit 8f31371

Please sign in to comment.